go install github.com/lance6716/k4Const/cmd/k4const@latest
go vet -vettool=$(which k4const) ./...
See test
- When the codebase is big, I really miss the
const
type qualifier to prevent unexpected modification. - Golang uses identifier names to represent public/private, so it's similar to use it for other purpose.
- It's a general notation to use
k
in naming, to represent it's a constant.