strcase

package
v1.0.0-beta.26 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TitleFirstWord

func TitleFirstWord(s string) string

TitleFirstWord upper case the first letter of a string.

func ToBashArg

func ToBashArg(s string) string

ToBashArg returns the Bash public name of the given string.

func ToCamel

func ToCamel(s string) string

func ToKebab

func ToKebab(s string) string

Converts a string to kebab-case

func ToPascal

func ToPascal(s string) string

func ToPrivateGoName

func ToPrivateGoName(s string) string

ToPrivateGoName returns the Go private name of the given string.

func ToPublicGoName

func ToPublicGoName(s string) string

ToPrivateGoName returns the Go public name of the given string.

func ToSnake

func ToSnake(s string) string

Converts a string to snake_case

func ToSpace

func ToSpace(s string) string

Converts a string to kebab-case

func UntitleFirstWord

func UntitleFirstWord(s string) string

UntitleFirstWord lower case the first letter of a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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