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

Export error sentinel values and refactor #25

Closed
wants to merge 2 commits into from

Conversation

romshark
Copy link

@romshark romshark commented Sep 7, 2023

chore: Upgrade gomod to Go 1.21.
perf: Preallocate slice in (*Tags).Keys().
test: Add more tests and improve test coverage.
test: Move syntax error testing to TestParseErr.
refactor: Use github.com/stretchr/testify to simplify tests.
refactor: Use black-box testing (test package with "_test" suffix).
refactor: Use generic slice search function to reduce code duplication.

A little more than promised, but I hope you're fine with these changes living in 1 PR (saved me time).
Please let me know if you want these changes to be split across multiple PRs.

resolves #24

chore: Upgrade gomod to Go 1.21.
perf: Ireallocate slice in `(*Tags).Keys()`.
test: Add more tests and improve test coverage.
refactor: Use github.com/stretchr/testify to simplify tests.
refactor: Use black-box testing (test package with "_test" suffix).
refactor: Use generic slice search function to reduce code duplication.
@fatih
Copy link
Owner

fatih commented Sep 11, 2023

Hi @romshark

Thank you for the PR. However I'm not interested in any other refactor, nor do I want to change the test package. Our goal is to export the Errors. Could you please open a new PR with only the actual changes we talked about ?

Thank you

@romshark romshark closed this Nov 10, 2024
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.

Unexported error sentinel values
2 participants