Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ToSnakeCase converts string to snake_case. ToSnakeCase = ToSomeCaseWithSep('_', unicode.ToLower) // ToLowerCase is a shortcut for strings.ToLower. ToLowerCase = strings.ToLower // ToUrlSnakeCase works like ToSnakeCase except fills spaces with `-`. ToUrlSnakeCase = ToSomeCaseWithSep('-', unicode.ToLower) // ToDotSnakeCase works like ToSnakeCase except fills spaces with `.`(dot). ToDotSnakeCase = ToSomeCaseWithSep('.', unicode.ToLower) // ToCamelCase converts string to CamelCase. All space symbols, `_`, `.` and `-` will be removed. First symbol will be capital. ToCamelCase = toCamelCase(true, unicode.ToUpper) // ToCamelCase converts string to CamelCase. All space symbols, `_`, `.` and `-` will be removed. First symbol will be capital. ToCamelCaseLowerFirst = toCamelCaseLower() // ToNoCase returns input's string. Should be used for mocking, tests, etc. ToNoCase = func(s string) string { return s } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.