You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I declare a snake-case value like FOO_BAR_CONST, golint warn me to redefine with camel-case.
But gofmt won't do anything for it.
It should automatically rewrite a snake-case value to camel-case or pascal-case.
Is it too much?
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. But if your program contained:
const (
FOO_BAR_CONST=0FooBarConst=1
)
Then gofmt would make your program cease to compile. And if someone else imported your package and used p.FOO_BAR_CONST, then changing it to FooBarConst would make someone else's code cease to compile.
gofmt must always be safe to run, so we cannot do this.
When I declare a snake-case value like
FOO_BAR_CONST
, golint warn me to redefine with camel-case.But gofmt won't do anything for it.
It should automatically rewrite a snake-case value to camel-case or pascal-case.
Is it too much?
The text was updated successfully, but these errors were encountered: