Re: [go-nuts] reading long text without newline from stdin

2016-09-15 Thread vendelin8
On Friday, 9 September 2016 21:51:05 UTC+2, Ian Lance Taylor wrote: > > On Fri, Sep 9, 2016 at 12:36 PM, > > wrote: > > > > On Friday, 9 September 2016 18:45:24 UTC+2, Ian Lance Taylor wrote: > >> > >> On Fri, Sep 9, 2016 at 7:22 AM, wrote: > >> > > >> > I was trying to read a longer text

Re: [go-nuts] reading long text without newline from stdin

2016-09-09 Thread vendelin8
On Friday, 9 September 2016 18:45:24 UTC+2, Ian Lance Taylor wrote: > > On Fri, Sep 9, 2016 at 7:22 AM, > wrote: > > > > I was trying to read a longer text from stdin, without any newline. I > tried > > it with many ways: fmt.Scan, bufio.NewScanner, bufio ReadLine, > > ioutil.ReadAll. A samp

[go-nuts] reading long text without newline from stdin

2016-09-09 Thread vendelin8
Hi, I was trying to read a longer text from stdin, without any newline. I tried it with many ways: fmt.Scan, bufio.NewScanner, bufio ReadLine, ioutil.ReadAll. A sample code looks like this: stackoverflow.com/questions/27196195/golang-read-from-pipe-reads-tons-of-data#answer-27196786 If the lengt