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

recommended to use magic const strings #4059

Merged
merged 1 commit into from
Feb 7, 2021
Merged

recommended to use magic const strings #4059

merged 1 commit into from
Feb 7, 2021

Conversation

daheige
Copy link
Contributor

@daheige daheige commented Feb 6, 2021

In Go’s authentic code specification, when a string or number is called multiple times in multiple places, it is recommended to use magic strings or magic numbers or constants to define it to avoid repetitive work each time.

@jinzhu jinzhu merged commit ef5ef18 into go-gorm:master Feb 7, 2021
mittwillson pushed a commit to itering/gorm that referenced this pull request Sep 27, 2021
cgxxv pushed a commit to cgxxv/gorm that referenced this pull request Mar 25, 2022
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.

2 participants