Skip to content

Conversation

@hazzik
Copy link

@hazzik hazzik commented Mar 13, 2025

No description provided.

@reneleonhardt
Copy link

@hazzik Could you rebase and resolve the conflicts? (I'm no maintainer 😅)

@hazzik
Copy link
Author

hazzik commented Apr 17, 2025

@reneleonhardt done

s := bufio.NewScanner(r)
for s.Scan() {
line := s.Bytes()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The buffer size of bufio.Scanner is 64 kB, which might not be enough for some inputs. If anything, I'd suggest using bufio.Reader and its ReadString or ReadBytes methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants