We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
interface{}
any
After go.1.18 you can use any and interface{} are interchangeably.
I would love the change so when I do a ctrl+F and look for styles around how interfaces should work I don't get false positives.
interface
The style guide already prefers the use.
I would just want the examples here updated
The text was updated successfully, but these errors were encountered:
Hey! I am new here . Can you ps help and tell me what should be updated and with what?
Sorry, something went wrong.
Change https://github.com/google/styleguide/blob/gh-pages/go/decisions.md?plain=1#L2981
func IsNotNil(t *testing.T, name string, val interface{}) {
to
func IsNotNil(t *testing.T, name string, val any) {
https://github.com/google/styleguide/blob/gh-pages/go/best-practices.md?plain=1#L1258 https://github.com/google/styleguide/blob/gh-pages/go/best-practices.md?plain=1#L1275
func Sprintf(format string, data ...interface{}) string
func Sprintf(format string, data ...any) string
google#770 Issue. Updated: decisions.md, updated: best-practices.md
02ebcea
Successfully merging a pull request may close this issue.
After go.1.18 you can use
any
andinterface{}
are interchangeably.I would love the change so when I do a ctrl+F and look for styles around how
interface
s should work I don't get false positives.The style guide already prefers the use.
I would just want the examples here updated
The text was updated successfully, but these errors were encountered: