Naming conventions
The package naming
provides methods to parse and build compound names for variables types,
functions, classes or other structures in source code.
Naming conventions bring consistency, better understanding, readability and automation.
List of supported multiple-word identifier formats:
- camelCase
- CONSTANT_CASE
- flatcase
- kebab-case
- PascalCase
- snake_case
- Train-Case
- UPPERFLATCASE
Installation
To install it, you need to install Go and set your Go workspace first. Then, download and install it:
$ go get -u github.com/rvflash/naming
Import it in your code:
import "github.com/rvflash/naming"
Prerequisite
naming
uses the Go modules that required Go 1.11 or later.