namer

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NamingCamel

func NamingCamel(raw string) string

NamingCamel is a Namer function that converts the 'TestingModelName' into the 'TestingModelName' format.

func NamingKebab

func NamingKebab(raw string) string

NamingKebab is a Namer function that converts the 'TestingModelName' into the 'testing-model-name' format.

func NamingLowerCamel

func NamingLowerCamel(raw string) string

NamingLowerCamel is a Namer function that converts the 'TestingModelName' into the 'testingModelName' format.

func NamingSnake

func NamingSnake(raw string) string

NamingSnake is a Namer function that converts the 'TestingModelName' into the 'testing_model_name' format.

Types

type Namer

type Namer func(string) string

Namer is the function that change the name with some prepared formatting.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL