Documentation
¶
Index ¶
- type Generator
- func (g *Generator) AllowRepeat() *Generator
- func (g *Generator) DisallowRepeat() *Generator
- func (g *Generator) Generate() (string, error)
- func (g *Generator) Length(length int) *Generator
- func (g *Generator) NoUpper() *Generator
- func (g *Generator) NumDigits(numDigits int) *Generator
- func (g *Generator) NumSymbols(numSymbols int) *Generator
- func (g *Generator) WithUpper() *Generator
- type Hasher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator() *Generator
func (*Generator) AllowRepeat ¶
AllowRepeat allows repeats in passwords
func (*Generator) DisallowRepeat ¶
DisallowRepeat allows repeats in passwords
func (*Generator) NumSymbols ¶
NumSymbols set number of symbols in generated password
Click to show internal directories.
Click to hide internal directories.