util

package
v0.0.0-...-81f72a3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeMD5

func EncodeMD5(value string) string

func GetIPLoc

func GetIPLoc(ip string) string

func PrintHelloBanner

func PrintHelloBanner(text string)

func RandStr

func RandStr(size int, kind StrType) []byte

生成随机字符串 size 个数 kind 模式

Types

type StrType

type StrType int
const (
	NUM   StrType = iota // 数字
	LOWER                // 小写字母
	UPPER                // 大写字母
	ALL                  // 全部
	CLEAR                // 去除部分易混淆的字符
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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