util

package
v0.0.0-...-8be1489 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 7 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 模式

func SidStr

func SidStr(name string, version *semver.Version, size int) string

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