code

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeBlend       = 0
	TypeDigit       = 1
	TypeLetterLower = 2
	TypeLetterUpper = 3
	DefaultLen      = 6
)

Variables

This section is empty.

Functions

func Blend added in v0.1.10

func Blend(length int) string

func Custom

func Custom(template string) string

func Default added in v0.1.10

func Default() string

func Digit added in v0.1.10

func Digit(length int) string

func Generate added in v0.1.10

func Generate(length int, codeType int) (code string)

func LetterLower added in v0.1.10

func LetterLower(length int) string

func LetterUpper added in v0.1.10

func LetterUpper(length int) string

func NewCustom

func NewCustom(length int, template string) (code string)

func NewZN_CN

func NewZN_CN(length int) (code string)

func PrintCNChar

func PrintCNChar()

func String

func String(length int, codeType int) string

func Verify added in v0.1.10

func Verify(in string, code string, capslock ...bool) bool

func ZN_CN

func ZN_CN() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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