I'm just starting with GO and I understand that SCANF uses spaces as a separator in GO.
fmt.Scanf("%s",&input)
I cant really find a way to accepts inputs that contain spaces as valid characters.
I'm just starting with GO and I understand that SCANF uses spaces as a separator in GO.
fmt.Scanf("%s",&input)
I cant really find a way to accepts inputs that contain spaces as valid characters.
When the user presses enter it signifies the end of input
That looks like fmt.Scanln
Scanln
is similar toScan
, but stops scanning at a newline and after the final item there must be a newline or EOF.