strings

package
v0.0.0-...-d4539c7 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(s string) string

Capitalize capitalizes the first letters of a string.

func Deburr

func Deburr(s string) string

Deburr removes diacritics from a string.

func Pad

func Pad(s string, length int) string

Pad centers a string into given length.

func PadLeft

func PadLeft(s string, length int) string

PadLeft adds padding to the left of a string.

func PadLeftWith

func PadLeftWith(s string, length int, pad string) string

PadLeftWith adds padding to the left of a string with given pad.

func PadRight

func PadRight(s string, length int) string

PadRight adds padding to the right of a string.

func PadRightWith

func PadRightWith(s string, length int, pad string) string

PadRightWith adds padding to the right of a string with given pad.

func PadWith

func PadWith(s string, length int, pad string) string

PadWith centers a string into given length with given pad.

func ToCamelCase

func ToCamelCase(s string) string

ToCamelCase converts a string to camelCase.

func ToKebabCase

func ToKebabCase(s string) string

ToKebabCase converts a string to kebab-case.

func ToSnakeCase

func ToSnakeCase(s string) string

ToSnakeCase converts a 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