Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToSnakeCase ¶
ToSnakeCase returns a copy of the string s with all Unicode letters mapped to their snake case. It will insert letter of '_' at position of previous letter of uppercase and all letters convert to lower case.
func ToSnakeCaseASCII ¶
ToSnakeCaseASCII is similar to ToSnakeCase, but optimized for only the ASCII characters. ToSnakeCaseASCII is faster than ToSnakeCase, but doesn't work correctly if contains non-ASCII characters.
func ToUpperCamelCase ¶
ToUpperCamelCase returns a copy of the string s with all Unicode letters mapped to their camel case. It will convert to upper case previous letter of '_' and first letter, and remove letter of '_'.
func ToUpperCamelCaseASCII ¶
ToUpperCamelCaseASCII is similar to ToUpperCamelCase, but optimized for only the ASCII characters. ToUpperCamelCaseASCII is faster than ToUpperCamelCase, but doesn't work if contains non-ASCII characters.
Types ¶
This section is empty.