简单地列一下 Golang 标准库中的包,知道他们是做什么的。
archive
压缩相关archive/tar
archive/zip
bufio
带缓冲的 IO 操作 Golang bufiobuiltin
基础类型和内建函数bytes
字节数组([]byte
)的相关操作cmd
cmd/addr2line
cmd/api
cmd/asm
cmd/cgo
cmd/compile
cmd/cover
cmd/dist
cmd/doc
cmd/fix
cmd/go
cmd/gofmt
cmd/link
cmd/nm
cmd/objdump
cmd/pack
cmd/pprof
cmd/test2json
cmd/trace
cmd/vet
cmd/internal
...compress
压缩相关compress/bzip2
compress/flate
compress/gzip
compress/lzw
compress/zlib
container
数据结构 Golangcontainer
包container/heap
container/list
container/ring
context
上下文crypto
加密算法相关crypto/aes
crypto/cipher
crypto/des
crypto/dsa
crypto/ecdsa
crypto/ed25519
crypto/elliptic
crypto/hmac
crypto/md5
crypto/rand
crypto/rc4
crypto/rsa
crypto/sha1
crypto/sha256
crypto/sha512
crypto/subtle
crypto/tls
crypto/x509
crypto/x509/pkix
database
数据库相关database/sql
database/sql/driver
debug
debug/dwarf
debug/elf
debug/gosym
debug/macho
debug/pe
debug/plan9obj
embed
encoding
编码相关encoding/ascii85
encoding/asn1
encoding/base32
encoding/base64
encoding/binary
encoding/csv
encoding/gob
encoding/hex
encoding/json
encoding/pem
encoding/xml
errors
expvar
flag
命令行参数fmt
格式化输出go
go/ast
go/build
go/build/constraint
go/constant
go/doc
go/format
go/importer
go/parser
go/printer
go/scanner
go/token
go/types
hash
hash/adler32
hash/crc32
hash/crc64
hash/fnv
hash/maphash
html
html/template
image
image/color
image/color/palette
image/draw
image/gif
image/jpeg
image/png
index
index/suffixarray
io
io/fs
io/ioutil
log
log/syslog
math
math/big
math/bits
math/cmplx
math/rand
mime
mime/multipart
mime/quotedprintable
net
网络编程net/http
HTTPnet/http/cgi
net/http/cookiejar
net/http/fcgi
net/http/httptest
net/http/httputil
net/http/pprof
net/mail
邮件解析net/rpc
net/rpc/jsonrpc
net/smtp
SMTP 客户端net/textproto
文本协议,例如 SMTPnet/url
URL 解析和转义os
os/exec
os/signal
os/user
path
文件路径相关path/filepath
plugin
reflect
regexp
regexp/syntax
runtime
runtime/cgo
runtime/debug
runtime/metrics
runtime/msan
runtime/pprof
runtime/race
runtime/trace
sort
strconv
strings
sync
sync/atomic
syscall
syscall/js
testing
testing/fstest
testing/iotest
testing/quick
text
text/scanner
text/tabwriter
text/template
text/template/parse
time
tzdata
unicode
unicode/utf16
unicode/utf8
unsafe
internal
internal/abi
internal/buildcfg
internal/bytealg
internal/cfg
internal/cpu
internal/execabs
internal/fmtsort
internal/goexperiment
internal/goroot
internal/goversion
internal/itoa
internal/lazytemplate
internal/nettrace
internal/obscuretestdata
internal/oserror
internal/poll
internal/profile
internal/race
internal/reflectlite
internal/singleflight
internal/syscall
internal/syscall/execenv
internal/syscall/unix
internal/syscall/windows
internal/syscall/windows/registry
internal/syscall/windows/sysdll
internal/sysinfo
internal/testenv
internal/testlog
internal/trace
internal/unsafeheader
internal/xcoff
golang.dev/x/benchmarks
golang.org/x/blog
https://blog.golang.orggolang.org/x/build
https://build.golang.orggolang.org/x/crypto
golang.org/x/debug
golang.org/x/image
golang.org/x/mobile
golang.org/x/net
golang.org/x/perf
golang.org/x/pkgsite
https://pkg.go.devgolang.org/x/review
Gerrit Code Reviewgolang.org/x/sync
golang.org/x/sys
系统调用golang.org/x/text
golang.org/x/time
golang.org/x/tools
godoc, goimports, gorename, and other tools.golang.org/x/tour
https://tour.golang.orggolang.org/x/exp