lib

package
v2.0.15+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Password

func Password(p Parameters) (string, error)

Password creates a password of the specified length if it is valid, or an error if the length is invalid.

Types

type Parameters

type Parameters struct {
	Length              int
	Upper, Lower, Digit bool
}

Parameters is a struct containing the length desired and whether we want the different classes of characters in the password.

Jump to

Keyboard shortcuts

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