Naming convention
Answered
Hi
Is it possible configure naming convention for constant, variable, function and so on ?
ie. constant should be uppercase letters
Thanks
Please sign in to leave a comment.
Hi,
You can configure code style options in the settings: Preferences/Settings | Editor | Code Style | Go. However, there is no setting for naming conventions.
By the way, speaking about upper-case letters for constants, you can take a look at Go Code Review Comments as a good resource for your code styling in Go, as well as naming conventions. According to https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps:
It would be great if you can share your thoughts on why it is useful to have naming conventions in the case of Go and what options should be included.