Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(goIdentifier string, format IdentFormat) string
Convert will take a given identifier and convert it to the specified format.
func GenerateSuggestion ¶ added in v1.9.3
func GenerateSuggestion(input string, format IdentFormat) string
GenerateSuggestion creates a suggestion for an identifier in the given format from the given input string.
Types ¶
type IdentFormat ¶
type IdentFormat int
const ( CamelCase IdentFormat = iota // camelCase PascalCase // PascalCase SnakeCase // snake_case ScreamingSnakeCase // SCREAMING_SNAKE_CASE KebabCase // kebab-case )
Click to show internal directories.
Click to hide internal directories.