usercode

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultUserCodeGenerator = &UCGenerator{}

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Generate() (string, error)
}

type UCGenerator

type UCGenerator struct{}

func (*UCGenerator) Generate

func (ucg *UCGenerator) Generate() (string, error)

Generate generates a user code with length 9 in the form of 'XXXX-XXXX'

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳