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
You need to provide a pointer to the var you want to scan, like so:
fmt.scan(&text2)