I would like to read standard input from the command line, but my attempts have ended with the program exiting before I\'m prompted for input. I\'m looking for the equivalen
Can also be done like this:-
package main import "fmt" func main(){ var myname string fmt.Scanf("%s", &myname) fmt.Println("Hello", myname) }