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

refactor: simplify with strings.Prefix and strings.CutPrefix #1137

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

alexandear
Copy link
Contributor

@alexandear alexandear commented Nov 18, 2024

This PR changes the code to use strings.TrimPrefix and strings.CutPrefix for simplification and clarity.

rule/exported.go Outdated Show resolved Hide resolved
@alexandear alexandear force-pushed the refactor/strings-prefix branch from cbf7b1b to 05b3b55 Compare November 19, 2024 11:04
@alexandear alexandear changed the title refactor: use strings.Prefix refactor: simplify with strings.Prefix and strings.CutPrefix Nov 19, 2024
@alexandear alexandear requested a review from ccoVeille November 19, 2024 11:06
rule/struct_tag.go Outdated Show resolved Hide resolved
@alexandear alexandear force-pushed the refactor/strings-prefix branch from 05b3b55 to e4e87d1 Compare November 19, 2024 14:17
@chavacava chavacava merged commit 1425e2f into mgechev:master Nov 19, 2024
5 checks passed
@alexandear alexandear deleted the refactor/strings-prefix branch November 19, 2024 17:22
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