Versions in this module Expand all Collapse all v0 v0.2.0 Apr 17, 2022 v0.1.1 Aug 14, 2021 Changes in this version + const DefaultLetterAmbiguousSet + const DefaultLetterSet + const DefaultNumberAmbiguousSet + const DefaultNumberSet + const DefaultSymbolAmbiguousSet + const DefaultSymbolSet + const LengthOK + const LengthStrong + const LengthVeryStrong + const LengthWeak + var DefaultConfig = Config + var ErrConfigIsEmpty = errors.New("config is empty") + type Config struct + CharacterSet string + ExcludeAmbiguousCharacters bool + ExcludeSimilarCharacters bool + IncludeLowercaseLetters bool + IncludeNumbers bool + IncludeSymbols bool + IncludeUppercaseLetters bool + Length uint + type Generator struct + func New(config *Config) (*Generator, error) + func NewWithDefault() (*Generator, error) + func (g Generator) Generate() (*string, error) + func (g Generator) GenerateMany(amount uint) ([]string, error) + func (g Generator) GenerateManyWithLength(amount, length uint) ([]string, error) + func (g Generator) GenerateWithLength(length uint) (*string, error)