I have a socket client that read response like this:
message, err := bufio.NewReader(conn).ReadString('
')
It works perfectly, but the ReadString method seems to have no limit on the buffer size.
Is it possible to add one? I didn't find much in bufio's document.