github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/pkg/util/system/version_unknown.go (about) 1 // +build !linux 2 // +build !darwin 3 // +build !windows 4 5 package system 6 7 import ( 8 "fmt" 9 "runtime" 10 ) 11 12 // GetOsVersion returns "unknown platform runtime.GOOS runtime.GOARCH" as a string and error. 13 // We don't have support for knowing how to get more details for this platform 14 func GetOsVersion() (string, error) { 15 str := fmt.Sprintf("unknown platform %s %s", runtime.GOOS, runtime.GOARCH) 16 return str, fmt.ErrorF(str) 17 }