Skip to content

Utility for Golang 1.21+, with generic, by MegaShow

License

Notifications You must be signed in to change notification settings

MegaShow/goutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoUtils

GitHub Action CodeCov GitHub Release Go Reference

go.icytown.com/utils 是 MegaShow 的 Golang 工具库,基于 Go 1.21 和泛型能力,实现了常用的数据结构和工具函数。

安装

go get go.icytown.com/utils@latest

使用

详细的使用说明请查阅 GoDoc

GoUtils 提供了以下工具库。

工具库 函数
ucond If, IfFunc
ucrypto MD5, SHA512
umap Keys, Values
uobject Default, Indirect, IndirectOr, IsNotZero, IsZero, Ptr
uruntime GetFuncFullName, GetFuncName
uslice Distinct, Filter, GroupBy, Map, ToMap

除此之外,GoUtils 还提供了一些常用的容器封装。

容器库 容器
maps SyncMap
sets HashSet
stacks ArrayStack
tuples Pair, Triple

协议

GoUtils 基于 MIT 协议开源。

About

Utility for Golang 1.21+, with generic, by MegaShow

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages