Documentation
¶
Overview ¶
Package strcase provides string case conversion utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToKebabCase ¶
ToKebabCase converts a string to kebab-case. Examples:
- "simpleName" -> "simple-name"
- "AnotherExampleTest" -> "another-example-test"
- "TLSEncryptedConnection" -> "tls-encrypted-connection"
func ToScreamingSnakeCase ¶
ToScreamingSnakeCase converts a string to SCREAMING_SNAKE_CASE. Examples:
- "simpleName" -> "SIMPLE_NAME"
- "AnotherExampleTest" -> "ANOTHER_EXAMPLE_TEST"
- "TLSEncryptedConnection" -> "TLS_ENCRYPTED_CONNECTION"
func ToSnakeCase ¶
ToSnakeCase converts a string to snake_case. Examples:
- "simpleName" -> "simple_name"
- "AnotherExampleTest" -> "another_example_test"
- "TLSEncryptedConnection" -> "tls_encrypted_connection"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.