Versions in this module Expand all Collapse all v0 v0.1.2 May 30, 2024 v0.1.1 May 29, 2024 Changes in this version + var WithCustomString = func(letters []rune) Policy + var WithDefault = NewPolicy([]rune(lowercase + uppercase + numbers + symbols), regexpValidator{ ... }) + var WithLowercase = NewPolicy([]rune(lowercase), regexpValidator{ ... }) + var WithMaxLength = func(max int) Policy + var WithMinLength = func(min int) Policy + var WithNumbers = NewPolicy([]rune(numbers), regexpValidator{ ... }) + var WithSymbols = NewPolicy([]rune(symbols), regexpValidator{ ... }) + var WithUppercase = NewPolicy([]rune(uppercase), regexpValidator{ ... }) + type Policy interface + Letters func() []rune + func NewPolicy(letters []rune, validator Validator) Policy + type Validator interface + IsValid func(password string) bool