Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to implement custom reader split functions #298

Open
atonks2 opened this issue Jun 1, 2023 · 0 comments
Open

Document how to implement custom reader split functions #298

atonks2 opened this issue Jun 1, 2023 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@atonks2
Copy link
Collaborator

atonks2 commented Jun 1, 2023

ICL Readers can be created with ReaderOptions, which makes it possible to implement custom bufio.SplitFuncs to handle vendor-specific ICL specifications/variations. These split functions aren't very intuitive to implement, so it would be helpful if ICL had a documentation section explaining how they work, and how to write them for use with its Reader.

Helpful links:

Note: The Reader's scanner is an unexported field, so a SetSplitFunc(split bufio.SplitFunc) method needs to be implemented so consumers of this library can implement their own SplitFuncs using ICL ReaderOptions.

@adamdecaf adamdecaf added enhancement New feature or request question Further information is requested labels Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants