Documentation ¶
Overview ¶
Package strs contains common string manipulation functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLowerCase ¶
IsLowerCase returns true if s only contain characters in the range a-z0-9.
func IsLowerSnakeCase ¶
IsLowerSnakeCase returns true if s only contains lowercase letters, digits, and/or underscores. s MUST NOT begin or end with an underscore.
func IsUpperCamelCase ¶
IsUpperCamelCase returns true if s is not empty and is camel case with an initial capital.
func IsUpperSnakeCase ¶
IsUpperSnakeCase returns true if s only contains uppercase letters, digits, and/or underscores. s MUST NOT begin or end with an underscore.
func SplitCamelCaseWord ¶
SplitCamelCaseWord splits a CamelCase word into its parts.
If s is empty, returns nil. If s is not CamelCase, returns nil.
func SplitSnakeCaseWord ¶
SplitSnakeCaseWord splits a snake_case word into its parts.
If s is empty, returns nil. If s is not snake_case, returns nil.
Types ¶
This section is empty.