str

package
v1.0.3-beta Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Camel

func Camel(str string) string

Camel converts the given string to CamelCase

func Kebab

func Kebab(str string) string

Kebab converts the given string to kebab-case

func Limit

func Limit(str string, length int) string

Limit truncates the given string to the specified length

func Random

func Random(length int, letterRunes ...rune) string

Random generates a random string of the specified length

func Snake

func Snake(str string) string

Snake converts the given string to snake_case

func Uuid

func Uuid() uuid.UUID

Uuid generates a UUID (version 4)

Types

This section is empty.

Jump to

Keyboard shortcuts

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