github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/utils/posix/posix.go (about) 1 package posix 2 3 import "runtime" 4 5 // IsPosix returns `true` when running on a POSIX host 6 func IsPosix() bool { 7 return isPosix(runtime.GOOS) 8 } 9 10 func isPosix(os string) bool { 11 return os != "windows" && os != "plan9" 12 }