I only getting the OS name
code:
package main
//import "os/exec"
//import "syscall"
import "runtime"
import "fmt"
func main() {
fmt.Println(runtime.GOOS) // windows
/*
cmd := exec.Command(cmd, arg)
err := cmd.Start()
if err != nil {
println("Failed", err)
}
*/
}
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.