On Thu, Oct 12, 2023 at 10:21 AM 'Mark' via golang-nuts <golang-nuts@googlegroups.com> wrote: > > The docs for bufio.Scanner do say > "Programs that need more control over error handling or large tokens, or must > run sequential scans on a reader, should use bufio.Reader instead" > Perhaps it would be more helpful to mention what the token length limit is?
It's MaxScanTokenSize: https://pkg.go.dev/bufio#pkg-constants . See also https://pkg.go.dev/bufio#Scanner.Buffer . Ian -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcXe6hk_R2KdQj19KNf9C5yc%2BWtpGXPO9u8tS7YjB9RCWA%40mail.gmail.com.