-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdoc.go
26 lines (26 loc) · 1.04 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Package utils some useful tools fo Golang
//
// # Modules
//
// Contains some useful tools in different directories:
//
// - `color.go`: colorful code
// - `compressor.go`: compress and extract dir/files
// - `configserver.go`: load configs from file or config-server
// - `email.go`: SMTP email sdk
// - `encrypt.go`: some tools for encrypt and decrypt,
// support AES, RSA, ECDSA, MD5, SHA128, SHA256
// - `fs.go`: some tools to read, move, walk dir/files
// - `http.go`: some tools to send http request
// - `jwt.go`: some tools to generate and parse JWT
// - `logger.go`: enhanched zap logger
// - `math.go`: some math tools to deal with int, round
// - `net.go`: some tools to deal with tcp/udp
// - `random.go`: generate random string, int
// - `settings.go`: read configs from file or config-server
// - `sort.go`: easier to sort
// - `sync.go`: some locks depends on atomic
// - `throttle.go`: faster rate limiter
// - `time.go`: faster clock (if you do not enable vdso)
// - `utils`: some useful tools
package utils