(Go version) Multi platform build (#319)

This commit is contained in:
Max Horstmann
2020-11-18 10:42:08 -05:00
committed by GitHub
parent 4807dc527c
commit b71378db82
7 changed files with 104 additions and 11 deletions

11
pkg/bbutil/umask_posix.go Normal file
View File

@@ -0,0 +1,11 @@
// +build !windows
package bbutil
import "syscall"
// Umask is a no-op on Windows, and calls syscall.Umask on all other
// systems. On Windows it returns 0, which is a decoy.
func Umask(mask int) int {
return syscall.Umask(mask)
}