Reputation: 965
In a GO struct I personally do not like the id fields following the convension - UserID. Is there a way to tell the GO formatter that UserId is ok and to stop giving me a warning?
Upvotes: 0
Views: 221
Reputation: 25742
Just fork the golint
repo and modify the lintNames
function as you like: https://github.com/golang/lint/blob/32a87160691b3c96046c0c678fe57c5bef761456/lint.go#L510
My suggestion: Don't override conventions or your code will look alien to other Gophers!
Upvotes: 6