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

Added parser.Split() #97

Merged
merged 3 commits into from
Dec 2, 2023
Merged

Conversation

francoislarochelle
Copy link
Contributor

I'd like to have access to the Split method in my Go projects.

Added invocation of parser.Split() and build an array of slices from its results.

@francoislarochelle
Copy link
Contributor Author

Hey @lfittl ! Would you mind taking a look at this? This would enable us using this lib in some projects. Thanks a lot!

Copy link
Member

@lfittl lfittl left a comment

Choose a reason for hiding this comment

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

@francoislarochelle Thanks for the contribution!

Two small comments, if these are addressed this should be good to merge.

I also do wonder if we should add SplitWithScanner at the same time, as @SKalt previously worked on in #52 - I believe the mechanism you used for SplitWithParser should be almost identical for what we'd need to do for SplitWithScanner.

parser/parser.go Outdated Show resolved Hide resolved
parser/parser.go Outdated Show resolved Hide resolved
@flarochelleupgrade
Copy link

Hello @lfittl ! Sorry for the delay but I have pushed some changes based on your suggestions. I have also added SplitWithScanner. I'd appreciate if you have a moment to take a look. Cheers!

@lfittl
Copy link
Member

lfittl commented Dec 2, 2023

Hello @lfittl ! Sorry for the delay but I have pushed some changes based on your suggestions. I have also added SplitWithScanner. I'd appreciate if you have a moment to take a look. Cheers!

Excellent, thank you for making those changes!

@lfittl lfittl merged commit 3c8cb1b into pganalyze:main Dec 2, 2023
1 check passed
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