random

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package random for creating random strings Ref. https://www.oschina.net/code/snippet_170216_50650

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Characters

func Characters(size int, kind Category) []byte

Characters will generate a random string

Types

type Category

type Category int

Category represents the type of random output

const (
	// Number represents all outputs will be numbers
	Number Category = iota
	// LowerCase represents all outputs will contain characters in lower case
	LowerCase
	// UpperCase represents all outputs will contain characters in upper case
	UpperCase
	// AllCase represents all outputs will contain characters in any case
	AllCase
)

func (Category) Int

func (c Category) Int() int

Int to int

Jump to

Keyboard shortcuts

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