what pre-commit hook do you find very useful when working with Golang in production?
i added few in my code but I am unable to get one that forces using camel case instead of snake case
Nearly every editor will gofmt
your code on save. I have never seen snake case in the wild. That’s probably more of a code review / style enforcement thing.
Are you using any specific tools or libraries (like golangci-lint
, go fmt
, or gofmt
) in your pre-commit hooks, and have you explored their customization options for naming conventions?
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.