fleet/orbit/pkg/constant/constant.go
Tomas Touceda 3ac8494d23 Add 'orbit/' from commit 'ab3047bb39f1e2be331d1ff18b4eb768619033c4'
git-subtree-dir: orbit
git-subtree-mainline: d5974aad97
git-subtree-split: ab3047bb39
2021-08-04 16:58:25 -03:00

20 lines
452 B
Go

package constant
const (
// DefaultDirMode is the default file mode to apply to created directories.
DefaultDirMode = 0o755
// DefaultFileMode is the default file mode to apply to created files.
DefaultFileMode = 0o600
)
// ExecutableExtension returns the extension used for executables on the
// provided platform.
func ExecutableExtension(platform string) string {
switch platform {
case "windows":
return ".exe"
default:
return ""
}
}