utils

package
v0.0.0-...-0b0b839 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
	ALPHANUM = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
	ALPHASYM = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@#$%^&*_+?-="
)

Variables

This section is empty.

Functions

func Bytes2String

func Bytes2String(b []byte) string

func RandomBytes

func RandomBytes(count int) []byte

RandomBytes 获取随机字符

func RandomInt

func RandomInt(start, end int) int

func RandomInt64

func RandomInt64(start, end int64) int64

func RandomString

func RandomString(count int, set ...[]byte) string

RandomString 获取随机字符串

func WaitForExit

func WaitForExit(twice bool, closeCh ...chan int)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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