Documentation ¶
Overview ¶
Package strs contains common string manipulation functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶ added in v0.10.0
SplitCamelCaseWord splits a CamelCase word into its parts.
If s is empty, returns nil. If s is not CamelCase, returns nil.
func SplitSnakeCaseWord ¶ added in v0.10.0
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.