Versions in this module Expand all Collapse all v1 v1.1.5 Aug 7, 2026 Changes in this version type Option + func WithoutAmbiguous() Option v1.1.4 Aug 7, 2026 Changes in this version type Option + func WithoutDigits() Option + func WithoutLowercase() Option v1.1.3 Aug 5, 2026 Changes in this version + var ErrEmptyCharset = errors.New("no charset selected") + var ErrInvalidLength = errors.New("invalid length") + 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 func(*config) + func WithDigits() Option + func WithLowercase() Option + func WithSymbols() Option + func WithUppercase() Option