Documentation
¶
Index ¶
- Variables
- func Generate(length int, options ...Option) (string, error)
- func GenerateMulti(count, length int, options ...Option) ([]string, error)
- func GenerateMultiWithCustomCharset(count, length int, charset string) ([]string, error)
- func GenerateWithCustomCharset(length int, charset string) (string, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyCharset = errors.New("no charset selected") ErrInvalidLength = errors.New("invalid length") )
Functions ¶
Types ¶
type Option ¶
type Option func(*config)
func WithSymbols ¶
func WithSymbols() Option
func WithUppercase ¶
func WithUppercase() Option
func WithoutDigits ¶ added in v1.1.4
func WithoutDigits() Option
func WithoutLowercase ¶ added in v1.1.4
func WithoutLowercase() Option
Click to show internal directories.
Click to hide internal directories.