Documentation ¶
Overview ¶
Package genutil was reference from https://github.com/protocolbuffers/protobuf-go/internal/strs/strings.go
Index ¶
- func GoInitialismCamelCase(s string) string
- func Initialism(s string) string
- func JSONCamelCase(s string) string
- func JSONSnakeCase(s string) string
- func NormalLizeGoName(s string) string
- func Normalize(s string) string
- func NormalizeGoTypeName(s string) string
- func NormalizeTypeName(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoInitialismCamelCase ¶
GoInitialismCamelCase return initialism
func JSONCamelCase ¶
JSONCamelCase converts a snake_case identifier to a camelCase identifier, according to the protobuf JSON specification.
func JSONSnakeCase ¶
JSONSnakeCase converts a camelCase identifier to a snake_case identifier, according to the protobuf JSON specification.
func NormalLizeGoName ¶
NormalLizeGoName return normalize GoName
func NormalizeGoTypeName ¶
NormalizeGoTypeName return Normalize for Go Type Name
func NormalizeTypeName ¶
NormalizeTypeName return name of model type, which normalize eg:
users => User categories => category
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.