utils

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MD5String added in v0.1.5

func MD5String(plaintext string) string

func MaskedName added in v0.1.2

func MaskedName(name string) string

func ParseJSONFile

func ParseJSONFile(path string, resPtr interface{}) (err error)

func RandIntN

func RandIntN(n int) int

func RandIntStr

func RandIntStr(n int) string

func RandStr

func RandStr(n int) string

func TimeCostLog

func TimeCostLog(ctx context.Context, logField string) func()

Types

This section is empty.

Jump to

Keyboard shortcuts

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