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 length was just a bit longer than 4096 characters, the result was always the same: it was cut at 4096 characters.
When I saved the text to a file, and read from there, every method worked. If I changed the spaces to newlines, every method worked from stdin. So only this combination was wrong. Looks like a bug for me. I wanted to use it for hackerrank.com excercises, where this is the typical input: long line given through stdin, without newline. Can anyone help me please? -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.