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 WithDigits
deprecated
func WithDigits() Option
Deprecated: Already true in the default config
func WithLowercase
deprecated
func WithLowercase() Option
Deprecated: Already true in the default config
func WithSymbols ¶
func WithSymbols() Option
func WithUppercase ¶
func WithUppercase() Option
Click to show internal directories.
Click to hide internal directories.