partycode

package module
v0.0.0-...-28fa420 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: 0BSD Imports: 0 Imported by: 0

README

partycode

Package partycode generates party codes.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

func New

func New(rand Rand, chars []byte, digits int) Generator

func (*Generator) Generate

func (g *Generator) Generate() string

type Rand

type Rand interface {
	// Intn returns, as an int, a non-negative random number in the half-open
	// interval [0,n).
	Intn(n int) int
}

Rand is a source of random numbers.

Jump to

Keyboard shortcuts

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