utils

package
v0.0.0-...-5eb911e Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Letters defines the available characters for passwords.
	Letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012345678a9_-"

	// ErrRandomData defines an error for missing random data.
	ErrRandomData = errors.New("failed to read random data")
)

Functions

func Password

func Password() (string, error)

Password generates a new random password.

Types

This section is empty.

Jump to

Keyboard shortcuts

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