bsid.es/partycode Index | Files

package partycode

import "bsid.es/partycode"

Index

Package Files

partycode.go

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.

Version
v0.0.0-20220616184851-28fa42006bfa (latest)
Published
Jun 16, 2022
Platform
linux/amd64
Last checked
1 month ago

Tools for package owners.