util

package
v0.0.0-...-870565b Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPasswdFunc = NewPasswordGen(32, true, true).Generate
)

Functions

This section is empty.

Types

type PasswdFunc

type PasswdFunc func() string

type PasswdGen

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

func NewPasswordGen

func NewPasswordGen(len uint, specialChars, numbers bool) *PasswdGen

func (PasswdGen) Generate

func (p PasswdGen) Generate() string

type StickyError

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

func (*StickyError) Error

func (s *StickyError) Error() error

func (StickyError) HasError

func (s StickyError) HasError() bool

func (*StickyError) Swallow

func (s *StickyError) Swallow(err error)

Jump to

Keyboard shortcuts

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