rand

package
v0.0.0-...-c65d5b7 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateHash

func CalculateHash(img image.Image) string

func LByteStrings

func LByteStrings(length int) []byte

func LBytes

func LBytes(length int) ([]byte, error)

func LStrings

func LStrings(len int) string

LStrings 生成指定长度的字符串

func LZWStrings

func LZWStrings(length int) string

LZWStrings 生成指定长度的字符串,返回 LZW 压缩后的字符串

func ModifyIconHash

func ModifyIconHash(inputFile, outputFile string, maxColorChange, count int) error

func RNumbers

func RNumbers(n int) int

RNumbers 生成 1-n 之间的随机整数

func RNumbersString

func RNumbersString(n int) string

RNumbersString 生成长度为 n 的数字字符串

func RStrings

func RStrings() string

RStrings 随机生成长度为 2-18 的字符串

func RandomLetters

func RandomLetters(len int) string

RandomLetters 随机生成指定长度的 a-z 或 A-Z 的字符串

func ZSTDStrings

func ZSTDStrings(length int) string

ZSTDStrings 生成指定长度的字符串,返回 ZSTD 压缩后的字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳