Re: [go-nuts] Re: Strings with blank convert to bytes

2020-07-09 Thread 洪嘉鴻
Hello! I've just found this according the information which you provided. Although there is a little different that it also reads "\n" with ReadString(). However, it solves my problem. Thanks for your

Re: [go-nuts] Re: Strings with blank convert to bytes

2020-07-09 Thread Kurtis Rader
On Thu, Jul 9, 2020 at 7:23 PM 洪嘉鴻 wrote: > Hello! > The problem isn't solve when I use "fmt.Scanln" instead of "fmt.Scanf". > That is, the result is the same whatever I use "fmt.Scanln" or "fmt.Scanf". > >From the documentation: the %s verb (and %v reading into a string) stops consuming input

[go-nuts] Re: Strings with blank convert to bytes

2020-07-09 Thread 洪嘉鴻
Hello! The problem isn't solve when I use "fmt.Scanln" instead of "fmt.Scanf". That is, the result is the same whatever I use "fmt.Scanln" or "fmt.Scanf". Thanks for your replying. Max tokers於 2020年7月10日星期五 UTC+8上午10時12分04秒寫道: > > Hello! > > Just quote the document: > > > Scanf scans text read fr

[go-nuts] Re: Strings with blank convert to bytes

2020-07-09 Thread tokers
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 max1...@gmail.com wrote: > Hello everyone: