pw

package
v0.0.0-...-9c59e84 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Mode
	Strength
}

func NewGenerator

func NewGenerator(m Mode, s Strength) Generator

func (Generator) GenerateWord

func (g Generator) GenerateWord() (string, error)

func (Generator) Next

func (g Generator) Next() (string, error)

type Mode

type Mode int
const (
	ModeShort Mode = iota
	ModeLong
)

type Strength

type Strength int
const (
	StrengthOnline  Strength = 4
	StrengthOffline Strength = 6
	StrengthCrypto  Strength = 8
)

Jump to

Keyboard shortcuts

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