rand

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 9 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 interface {
	Key() []byte
	KeyEncoded() string
}

func New

func New(opts ...Option) Generator

type Option

type Option func(*generator)

func Base64Encoder

func Base64Encoder() Option

func Encoder

func Encoder(encoder func(src []byte) string) Option

func Hash

func Hash(hashFn func() hash.Hash) Option

func HexEncoder

func HexEncoder() Option

func Randomness

func Randomness(len int) Option

func Sha1Hash

func Sha1Hash() Option

func Sha256Hash

func Sha256Hash() Option

func Sha512Hash

func Sha512Hash() Option

func UUIDEncoder

func UUIDEncoder() Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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