package
0.0.0-20240306160220-7f2d34a47ce7
Repository: https://github.com/corex-io/micro.git
Documentation: pkg.go.dev
# Functions
GenId gen id.
No description provided by the author
GetLocIp get Local ip.
GetRequestId GetTaskId.
GetSpanId GetSpanId.
GroupList 将长度为max的数据切分开来,每部分batch个,最后不够batch有多少算多少 var tt = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10} ch := GroupList(len(tt), 3)
for k := range ch { fmt.Println(k, tt[k[0]:k[1]]) }.
HumanDuration xx.
No description provided by the author
WithRequestId append taskId to context.
WithSpanId append SpanId to context.
# Variables
IP 本地IP地址.