stringutil

package
v0.0.0-...-89aa834 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCase

func CamelCase(s string) string

CamelCase converts the string to camelCase.

func Capitalize

func Capitalize(s string) string

Capitalize returns the string with the first letter capitalized.

func KebabCase

func KebabCase(s string) string

KebabCase converts the string to kebab-case.

func PascalCase

func PascalCase(s string) string

PascalCase converts the string to PascalCase.

func Rename

func Rename(s string, convert func(int, string) string, sep string) string

Rename renames the string with the given convert function and separator.

func SnakeCase

func SnakeCase(s string) string

SnakeCase converts the string to snake_case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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