Categorygithub.com/infrago/util
modulepackage
0.0.2
Repository: https://github.com/infrago/util.git
Documentation: pkg.go.dev

# README

util

infra.Go util.

# Functions

No description provided by the author
No description provided by the author
DeepMapping 深度复制Map对象.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MapString 从 map 读字串.
md5加密.
MD5.
md5加密文件.
MD5File.
No description provided by the author
No description provided by the author
BaseName 获取路径中的文件名,不包含扩展名.
New creates a new HashID.
NewData creates a new HashIDData with the DefaultAlphabet already set.
NewExecutor creates a new Executor, Executor can not be created by &Executor{} HandlePanic can be set with a callback to override global HandlePanic.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewWithData creates a new HashID with the provided HashIDData.
No description provided by the author
ParseDuration parses a duration string.
No description provided by the author
No description provided by the author
ParseTOML 解析toml文本得到配置.
sha1加密.
sha1加密.
No description provided by the author
sha1加密文件.
sha1加密文件.
No description provided by the author
sha256加密.
SHA256.
No description provided by the author
sha256加密文件.
sha256加密文件.
No description provided by the author
No description provided by the author
GenerateUUID is used to generate a random UUID.

# Constants

DefaultAlphabet is the default alphabet used by go-hashids.
No description provided by the author
Version is the version number of the library.

# Variables

No description provided by the author
GlobalExecutor has the life cycle of the program itself any goroutine want to be shutdown before main exit can be started from this executor GlobalExecutor expects the main function to call stop it does not magically knows the main function exits.
HandlePanic logs goroutine panic by default.

# Structs

Executor is a executor without limits on counts of alive goroutines it tracks the goroutine started by it, and can cancel them when shutdown.
No description provided by the author
HashID contains everything needed to encode/decode hashids.
HashIDData contains the information needed to generate hashids.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author