SyntaxFix
Write A Post
Hire A Developer
Questions
bufio.Reader.ReadLine() works well. But if you want to read each line by a string, try to use ReadString('\n'). It doesn't need to reinvent the wheel.