password

package
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Password)

func WithLength

func WithLength(length int) Option

func WithLower

func WithLower(enabled bool) Option

func WithNumbers

func WithNumbers(enabled bool) Option

func WithSpecial

func WithSpecial(enabled bool) Option

func WithUpper

func WithUpper(enabled bool) Option

type Password

type Password struct {
	// contains filtered or unexported fields
}

func NewPassword

func NewPassword(opts ...Option) *Password

func (*Password) Generate

func (p *Password) Generate() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL