utils

package
v0.5.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 8 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

func String added in v0.5.0

func String(data []byte) 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