Hello!

Just quote the document:

> Scanf scans text read from standard input, storing successive 
space-separated values into successive arguments as determined by the format

Instead, you can use fmt.Scanln.
On Friday, July 10, 2020 at 10:03:26 AM UTC+8 [email protected] wrote:

> Hello everyone:
> I use golang with Win10. The version of golang I used is go1.12.9.
> This <https://play.golang.org/p/ourFKQzmhgu> is a simple code I'm trying 
> to figure out.
> However, I have no idea how to edit to make the output "b1" the same as 
> "b" if "b1" is read from user input.
> Could anyone help me to solve this problem?
>
> Any help is appreciated.
> Thank you very much!
> Max
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/743538ee-b0b0-4ed0-bfc3-0a337f11ac66n%40googlegroups.com.

Reply via email to