mirror of
https://github.com/fleetdm/fleet
synced 2026-05-21 07:58:31 +00:00
19 lines
452 B
Go
19 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 ""
|
|
}
|
|
}
|