Documentation ¶
Index ¶
- func Add(in ...interface{}) (int64, error)
- func Equal(a, b reflect.Value) bool
- func FuncMap() template.FuncMap
- func In(item reflect.Value, value reflect.Value) (bool, error)
- func MakeSlice(item ...interface{}) []interface{}
- func SplitStringViaSpecialChars(in string) []string
- func SplitStringViaUpperChars(in string) []string
- func ToCamel(in string) string
- func ToInt64(x interface{}) (int64, error)
- func ToKebab(in string) string
- func ToPascal(in string) string
- func ToSnack(in string) string
- func ToUpperFirst(in string) string
- func ZeroValue(in string) string
- type Field
- type FieldList
- type Interface
- type Method
- type Recv
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeSlice ¶
func MakeSlice(item ...interface{}) []interface{}
MakeSlice will create a new slice via input values.
func SplitStringViaSpecialChars ¶
SplitStringViaSpecialChars will split strings via special chars.
Examples:
a_bc => [a, bc] a-bc => [a, bc] a bc => [a, bc] a--b => [a, b]
func SplitStringViaUpperChars ¶
SplitStringViaUpperChars will split string via upper case chars.
Examples:
abc => [abc] Abc => [Abc] AbC => [Ab, C] AbCd => [Ab, Cd] AAA => [AAA] AAABb => [AAA, Bb]
All state: empty, upper, digit lower All action: add, append
prev, cur, next, action empty, upper, empty, append empty, upper, upper, append empty, upper, lower, append upper, upper, empty, append upper, upper, upper, append upper, upper, lower, add lower, upper, empty, add lower, upper, upper, add lower, upper, lower, add empty, lower, empty, append empty, lower, upper, append empty, lower, lower, append upper, lower, empty, append upper, lower, upper, append upper, lower, lower, append lower, lower, empty, append lower, lower, upper, append lower, lower, lower, append
func ToCamel ¶
ToCamel combines words by capitalizing all words following the first word and removing the space
func ToPascal ¶
ToPascal combines words by capitalizing all words (even the first word) and removing the space
func ToUpperFirst ¶
ToUpperFirst will convert first letter to upper case.