Naming provides methods to parse and build compound names for variables types


Keywords
golang, naming-conventions
License
MIT
Install
go get github.com/rvflash/naming

Documentation

Naming conventions

GoDoc Build Status Code Coverage Go Report Card

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.