Documentation ¶
Overview ¶
Package ident provides support for converting identifiers between different naming conventions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddInitialism ¶
func AddInitialism(ident string)
AddInitialism adds the given identifier to the set of initialisms. The given identifier should be in the PascalCase form and have at most one lower-cased letter which must be at the very end.
Types ¶
type Parts ¶
type Parts [][]byte
Parts represents the normalized elements of an identifier.
func FromPascal ¶
FromPascal parses the given PascalCased identifier into its parts.
func FromScreamingSnake ¶
FromScreamingSnake parses the given SCREAMING_SNAKE_CASED identifier into its parts.
func (Parts) ToScreamingSnake ¶
ToScreamingSnake converts the identifier into a SCREAMING_SNAKE_CASED string.
Click to show internal directories.
Click to hide internal directories.