2020-12-24 03:20:31 +00:00
|
|
|
package constant
|
|
|
|
|
|
|
|
const (
|
|
|
|
// DefaultDirMode is the default file mode to apply to created directories.
|
2021-01-26 03:53:51 +00:00
|
|
|
DefaultDirMode = 0o755
|
2020-12-24 03:20:31 +00:00
|
|
|
// DefaultFileMode is the default file mode to apply to created files.
|
|
|
|
DefaultFileMode = 0o600
|
|
|
|
)
|
2021-01-26 03:53:51 +00:00
|
|
|
|
|
|
|
// ExecutableExtension returns the extension used for executables on the
|
|
|
|
// provided platform.
|
|
|
|
func ExecutableExtension(platform string) string {
|
|
|
|
switch platform {
|
|
|
|
case "windows":
|
|
|
|
return ".exe"
|
|
|
|
default:
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
}
|