stringer

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRandTooShort = errors.New("string to short to randomize")
)

Functions

func Clean

func Clean(s string) string

func LowerCaseCamel

func LowerCaseCamel(s string) string

func Random

func Random(n int, tokens ...StringToken) (string, error)

Types

type StringToken

type StringToken string
const (
	RandAll       StringToken = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$^&*_-"
	RandLowercase StringToken = "abcdefghijklmnopqrstuvwxyz"
	RandUppercase StringToken = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	RandNumber    StringToken = "0123456789"
	RandSym       StringToken = "!@#$^&*_-"
)

func (StringToken) String

func (st StringToken) String() string

Jump to

Keyboard shortcuts

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