Documentation
¶
Index ¶
- type Generator
- func (g *Generator) NewPassword(pLen, nLen, sLen int) (s string, err error)
- func (g *Generator) ToUpper(char []byte) byte
- func (g *Generator) WriteChar(slice []byte) error
- func (g *Generator) WriteNums(nLen int) error
- func (g *Generator) WriteSpecialChars(sLen int) error
- func (g *Generator) WriteWord(wLen int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
Consonants []byte
Vowels []byte
Numbers []byte
SpecialChars []byte
Capitalize bool
CapitalizeOdds int
// contains filtered or unexported fields
}
func NewDefaultGenerator ¶
func NewGenerator ¶
func (*Generator) NewPassword ¶
func (*Generator) WriteSpecialChars ¶
Click to show internal directories.
Click to hide internal directories.