github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/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 }