* Sagar Byahatti <
sagarb...@gmail.com> [240220 08:22]:
fmt.Scan is probably not what you want, though if I run your program and
type a single word (no spaces) and then a newline, I get the result that
I think you are expecting.
You probably want to look at the bufio package, and specifically the
Reader.ReadString method. Something like (untested)
var input = bufio.NewReader(os.Stdin)
var userName, err = input.ReadString('\n')
...Marvin