d7a3a090df
From the 1.17 release notes (https://golang.org/doc/go1.17#gofmt): gofmt (and go fmt) now synchronizes //go:build lines with // +build lines. More info about this change can be found at https://golang.org/design/draft-gobuild
11 lines
229 B
Go
11 lines
229 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package config
|
|
|
|
// Windows doesn't provide the umask syscall, so return something sane as a
|
|
// default. os.Chmod will only care about the owner bits anyway.
|
|
func umask() int {
|
|
return 077
|
|
}
|