Documentation
¶
Overview ¶
Package password provides types and functions for password generation.
Index ¶
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
}
Generator can generate passwords with a given configuration passed via functional Options in its constructor.
func NewGenerator ¶
NewGenerator will create a Generator which can generate passwords. A number of Options can be passed to configure the resulting Generator.
type Option ¶
type Option func(*Generator)
Option is the functional option type to allow variadic and generic configration of generators.
func SpecialChars ¶
SpecialChars configures the exact amount of special characters in generated passwords.
Click to show internal directories.
Click to hide internal directories.