Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Password)
Option is a functional option type for configuring password generation.
func WithLength ¶
WithLength sets the length of the password (8–128).
func WithLower ¶
func WithLower() Option
WithLower enables or disables lowercase letters in the password.
func WithNumbers ¶
func WithNumbers() Option
WithNumbers enables or disables numeric characters in the password.
func WithSpecial ¶
func WithSpecial() Option
WithSpecial enables or disables special characters in the password.
type Password ¶
type Password struct {
// contains filtered or unexported fields
}
Password holds configuration for generating passwords.
func NewPassword ¶
NewPassword constructs a Password with provided options. By default, it creates a password of length 8 with no character types enabled.
Click to show internal directories.
Click to hide internal directories.