str

package
v0.0.0-...-724610a Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cut

func Cut(str, begin, end string) string

Cut 裁剪字符串

func Escape

func Escape(str string) string

Escape 转义字符串

func FirstElement

func FirstElement(args []string) string

FirstElement 安全地获取 args[0],避免 panic: runtime error: index out of range

func FormatBytes

func FormatBytes(size float64) string

FormatBytes 格式化bytes

func MD5

func MD5(str string) string

MD5 生成字符串的 MD5 值

func RandomNumber

func RandomNumber(length int) string

RandomNumber 生成长度为 length 随机数字字符串

func RandomString

func RandomString(length int) string

RandomString 生成长度为 length 的随机字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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