strcase

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package strcase provides string case conversion utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToKebabCase

func ToKebabCase(s string) string

ToKebabCase converts a string to kebab-case. Examples:

  • "simpleName" -> "simple-name"
  • "AnotherExampleTest" -> "another-example-test"
  • "TLSEncryptedConnection" -> "tls-encrypted-connection"

func ToScreamingSnakeCase

func ToScreamingSnakeCase(s string) string

ToScreamingSnakeCase converts a string to SCREAMING_SNAKE_CASE. Examples:

  • "simpleName" -> "SIMPLE_NAME"
  • "AnotherExampleTest" -> "ANOTHER_EXAMPLE_TEST"
  • "TLSEncryptedConnection" -> "TLS_ENCRYPTED_CONNECTION"

func ToSnakeCase

func ToSnakeCase(s string) string

ToSnakeCase converts a string to snake_case. Examples:

  • "simpleName" -> "simple_name"
  • "AnotherExampleTest" -> "another_example_test"
  • "TLSEncryptedConnection" -> "tls_encrypted_connection"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL