github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/libkb/osv_windows.go (about) 1 //go:build windows 2 // +build windows 3 4 package libkb 5 6 // OSVersionAndBuild returns OS version, and build too on some platforms 7 func OSVersionAndBuild() (string, string, error) { 8 productVersion, err := execToString("cmd", []string{"/c", "ver"}) 9 if err != nil { 10 return "", "", err 11 } 12 return productVersion, "", nil 13 }