# go-docs **Repository Path**: dsxwk/go-docs ## Basic Information - **Project Name**: go-docs - **Description**: golang 标准库中文文档 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-06 - **Last Updated**: 2026-03-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Go 标准库中文文档 ## 标准库 | 名称 | 摘要 | |------|------| | archive/tar | 提供 tar 格式压缩文件的存取 | | archive/zip | 提供 zip 格式压缩文件的存取 | | bufio | 提供缓冲 I/O 操作,如带缓冲的读写器 | | builtin | 包含 Go 语言的内置函数和类型 | | bytes | 提供字节切片操作功能,类似于 strings 包 | | compress/bzip2 | 提供 Bzip2 压缩算法实现 | | compress/flate | 提供 DEFLATE 压缩算法实现 | | compress/gzip | 提供 gzip 压缩算法实现 | | compress/lzw | 提供 LZW 压缩算法实现 | | compress/zlib | 提供 zlib 压缩算法实现 | | container/heap | 提供堆数据结构实现 | | container/list | 提供双向链表实现 | | container/ring | 提供环形链表实现 | | context | 提供上下文管理功能,用于控制 goroutine 的生命周期 | | crypto | 提供加密相关功能 | |     crypto/aes | 提供 AES 加密算法实现 | |     crypto/cipher | 提供密码学模式实现 | |     crypto/des | 提供 DES 加密算法实现 | |     crypto/dsa | 提供 DSA 签名算法实现 | |     crypto/ecdsa | 提供 ECDSA 签名算法实现 | |     crypto/elliptic | 提供椭圆曲线算法实现 | |     crypto/hmac | 提供 HMAC 消息认证码实现 | |     crypto/md5 | 提供 MD5 哈希算法实现 | |     crypto/rand | 提供随机数生成功能 | |     crypto/rc4 | 提供 RC4 加密算法实现 | |     crypto/rsa | 提供 RSA 加密算法实现 | |     crypto/sha1 | 提供 SHA-1 哈希算法实现 | |     crypto/sha256 | 提供 SHA-256 哈希算法实现 | |     crypto/sha512 | 提供 SHA-512 哈希算法实现 | |     crypto/subtle | 提供密码学安全的比较操作 | |     crypto/tls | 提供 TLS 协议实现 | |     crypto/x509 | 提供 X.509 证书处理 | |     crypto/x509/pkix | 提供 X.509 证书扩展功能 | | database/sql | 提供 SQL 数据库接口 | |     database/sql/driver | 提供 SQL 驱动接口 | | debug/dwarf | 提供 DWARF 调试信息处理 | | debug/elf | 提供 ELF 文件格式处理 | | debug/gosym | 提供 Go 符号表处理 | | debug/macho | 提供 Mach-O 文件格式处理 | | debug/pe | 提供 PE 文件格式处理 | | debug/plan9obj | 提供 Plan 9 对象文件格式处理 | | encoding | 提供编码相关功能 | |     encoding/ascii85 | 提供 ASCII85 编码实现 | |     encoding/asn1 | 提供 ASN.1 编码实现 | |     encoding/base32 | 提供 Base32 编码实现 | |     encoding/base64 | 提供 Base64 编码实现 | |     encoding/binary | 提供二进制数据编解码 | |     encoding/csv | 提供 CSV 数据处理 | |     encoding/gob | 提供 Go 对象编解码 | |     encoding/hex | 提供十六进制编解码 | |     encoding/json | 提供 JSON 编解码 | |     encoding/pem | 提供 PEM 编码实现 | |     encoding/xml | 提供 XML 编解码 | | errors | 提供错误处理功能 | | expvar | 提供导出变量的功能,用于监控 | | flag | 提供命令行参数解析功能 | | fmt | 提供格式化 I/O 功能 | | go/ast | 提供 Go 抽象语法树处理 | | go/build | 提供 Go 构建系统相关功能 | | go/constant | 提供 Go 常量处理 | | go/doc | 提供 Go 文档生成功能 | | go/format | 提供 Go 代码格式化功能 | | go/importer | 提供 Go 包导入功能 | | go/parser | 提供 Go 代码解析功能 | | go/printer | 提供 Go 代码打印功能 | | go/scanner | 提供 Go 代码扫描功能 | | go/token | 提供 Go 词法标记处理 | | go/types | 提供 Go 类型系统处理 | | hash | 提供哈希函数接口 | |     hash/adler32 | 提供 Adler-32 哈希算法实现 | |     hash/crc32 | 提供 CRC32 哈希算法实现 | |     hash/crc64 | 提供 CRC64 哈希算法实现 | |     hash/fnv | 提供 FNV 哈希算法实现 | | html | 提供 HTML 处理功能 | |     html/template | 提供 HTML 模板功能 | | image | 提供图像处理功能 | |     image/color | 提供颜色处理功能 | |     image/color/palette | 提供颜色调色板功能 | |     image/draw | 提供图像绘制功能 | |     image/gif | 提供 GIF 图像处理 | |     image/jpeg | 提供 JPEG 图像处理 | |     image/png | 提供 PNG 图像处理 | | index/suffixarray | 提供后缀数组实现 | | io | 提供基本 I/O 接口 | |     io/ioutil | 提供 I/O 工具函数 | | iter | 提供迭代器功能 | | log | 提供日志功能 | |     log/slog | 提供结构化日志功能 | |     log/syslog | 提供系统日志功能 | | maps | 提供映射操作的辅助函数 | | math | 提供数学函数 | |     math/big | 提供大整数和有理数处理 | |     math/bits | 提供位操作函数 | |     math/cmplx | 提供复数数学函数 | |     math/rand | 提供随机数生成功能 | | mime | 提供 MIME 类型处理 | |     mime/multipart | 提供多部分 MIME 消息处理 | |     mime/quotedprintable | 提供 quoted-printable 编码实现 | | net | 提供网络相关功能 | |     net/http | 提供 HTTP 客户端和服务器实现 | |     net/http/cgi | 提供 CGI 支持 | |     net/http/cookiejar | 提供 HTTP Cookie 管理 | |     net/http/fcgi | 提供 FastCGI 支持 | |     net/http/httptest | 提供 HTTP 测试工具 | |     net/http/httptrace | 提供 HTTP 请求跟踪 | |     net/http/httputil | 提供 HTTP 工具函数 | |     net/http/pprof | 提供 HTTP 性能分析 | |     net/mail | 提供邮件处理功能 | |     net/netip | 提供网络 IP 地址处理 | |     net/rpc | 提供远程过程调用功能 | |     net/rpc/jsonrpc | 提供 JSON-RPC 实现 | |     net/smtp | 提供 SMTP 客户端功能 | |     net/textproto | 提供文本协议处理 | |     net/url | 提供 URL 解析功能 | | os | 提供操作系统接口 | |     os/exec | 提供执行外部命令的功能 | |     os/signal | 提供信号处理功能 | |     os/user | 提供用户信息查询功能 | | path | 提供路径操作功能 | |     path/filepath | 提供文件路径操作功能 | | plugin | 提供插件加载功能 | | reflect | 提供反射功能,用于运行时检查类型 | | regexp | 提供正则表达式功能 | |     regexp/syntax | 提供正则表达式语法处理 | | runtime | 提供 Go 运行时功能 | |     runtime/cgo | 提供 CGO 支持 | |     runtime/debug | 提供调试功能 | |     runtime/pprof | 提供性能分析功能 | |     runtime/race | 提供竞态检测功能 | |     runtime/trace | 提供执行跟踪功能 | | slices | 提供切片操作的辅助函数 | | sort | 提供排序功能 | | strconv | 提供字符串与基本数据类型之间的转换功能 | | strings | 提供字符串操作功能 | | structs | 提供结构体操作功能 | | sync | 提供同步原语,如互斥锁、读写锁等 | |     sync/atomic | 提供原子操作功能 | | syscall | 提供系统调用功能 | |     syscall/js | 提供 JavaScript 系统调用功能 | | testing | 提供测试功能 | |     testing/iotest | 提供 I/O 测试工具 | |     testing/quick | 提供快速测试功能 | | text/scanner | 提供文本扫描功能 | | text/tabwriter | 提供表格输出功能 | | text/template | 提供文本模板功能 | |     text/template/parse | 提供文本模板解析功能 | | time | 提供时间处理功能 | | unicode | 提供 Unicode 字符处理功能 | |     unicode/utf16 | 提供 UTF-16 编码处理 | |     unicode/utf8 | 提供 UTF-8 编码处理 | | unique | 提供唯一标识符功能 | | unsafe | 提供不安全操作的功能,如指针操作 | | weak | 提供弱引用功能 | ## 详细文档 以下是各个标准库包的详细文档,按分类整理: ### 归档 - [archive/tar 包](归档/tar.md) - [archive/zip 包](归档/zip.md) ### 内置 - [builtin 包](内置/builtin.md) ### 格式化I/O - [fmt 包](格式化I_O/fmt.md) - [bufio 包](格式化I_O/bufio.md) ### 基本I/O - [io 包](基本I_O/io.md) - [io/ioutil 包](基本I_O/ioutil.md) ### 压缩 - [compress/bzip2 包](压缩/bzip2.md) - [compress/flate 包](压缩/flate.md) - [compress/gzip 包](压缩/gzip.md) - [compress/lzw 包](压缩/lzw.md) - [compress/zlib 包](压缩/zlib.md) ### 容器 - [container/heap 包](容器/heap.md) - [container/list 包](容器/list.md) - [container/ring 包](容器/ring.md) ### 上下文 - [context 包](上下文/context.md) ### 加密 - [crypto 包](加密/crypto.md) - [crypto/aes 包](加密/aes.md) - [crypto/cipher 包](加密/cipher.md) - [crypto/des 包](加密/des.md) - [crypto/dsa 包](加密/dsa.md) - [crypto/ecdsa 包](加密/ecdsa.md) - [crypto/elliptic 包](加密/elliptic.md) - [crypto/hmac 包](加密/hmac.md) - [crypto/md5 包](加密/md5.md) - [crypto/rand 包](加密/rand.md) - [crypto/rc4 包](加密/rc4.md) - [crypto/rsa 包](加密/rsa.md) - [crypto/sha1 包](加密/sha1.md) - [crypto/sha256 包](加密/sha256.md) - [crypto/sha512 包](加密/sha512.md) - [crypto/subtle 包](加密/subtle.md) - [crypto/tls 包](加密/tls.md) - [crypto/x509 包](加密/x509.md) - [crypto/x509/pkix 包](加密/x509/pkix/pkix.md) ### 数据库 - [database/sql 包](数据库/sql.md) - [database/sql/driver 包](数据库/driver.md) ### 调试 - [debug/dwarf 包](调试/dwarf.md) - [debug/elf 包](调试/elf.md) - [debug/gosym 包](调试/gosym.md) - [debug/macho 包](调试/macho.md) - [debug/pe 包](调试/pe.md) - [debug/plan9obj 包](调试/plan9obj.md) ### 编码 - [encoding 包](编码/encoding.md) - [encoding/ascii85 包](编码/ascii85.md) - [encoding/asn1 包](编码/asn1.md) - [encoding/base32 包](编码/base32.md) - [encoding/base64 包](编码/base64.md) - [encoding/binary 包](编码/binary.md) - [encoding/csv 包](编码/csv.md) - [encoding/gob 包](编码/gob.md) - [encoding/hex 包](编码/hex.md) - [encoding/json 包](编码/json.md) - [encoding/pem 包](编码/pem.md) - [encoding/xml 包](编码/xml.md) ### 错误处理 - [errors 包](错误处理/errors.md) ### 导出变量 - [expvar 包](导出变量/expvar.md) ### 命令行参数 - [flag 包](命令行参数/flag.md) ### Go 工具链 - [go/ast 包](Go工具链/ast.md) - [go/build 包](Go工具链/build.md) - [go/constant 包](Go工具链/constant.md) - [go/doc 包](Go工具链/doc.md) - [go/format 包](Go工具链/format.md) - [go/importer 包](Go工具链/importer.md) - [go/parser 包](Go工具链/parser.md) - [go/printer 包](Go工具链/printer.md) - [go/scanner 包](Go工具链/scanner.md) - [go/token 包](Go工具链/token.md) - [go/types 包](Go工具链/types.md) ### 哈希 - [hash 包](哈希/hash.md) - [hash/adler32 包](哈希/adler32.md) - [hash/crc32 包](哈希/crc32.md) - [hash/crc64 包](哈希/crc64.md) - [hash/fnv 包](哈希/fnv.md) ### HTML处理 - [html 包](HTML处理/html.md) - [html/template 包](HTML处理/template.md) ### 图像 - [image 包](图像/image.md) - [image/color 包](图像/color.md) - [image/color/palette 包](图像/color/palette/palette.md) - [image/draw 包](图像/draw.md) - [image/gif 包](图像/gif.md) - [image/jpeg 包](图像/jpeg.md) - [image/png 包](图像/png.md) ### 索引 - [index/suffixarray 包](索引/suffixarray.md) ### 迭代器 - [iter 包](迭代器/iter.md) ### 日志 - [log 包](日志/log.md) - [log/slog 包](日志/slog.md) - [log/syslog 包](日志/syslog.md) ### 映射 - [maps 包](映射/maps.md) ### 数学 - [math 包](数学/math.md) - [math/big 包](数学/big.md) - [math/bits 包](数学/bits.md) - [math/cmplx 包](数学/cmplx.md) - [math/rand 包](数学/rand.md) ### MIME处理 - [mime 包](MIME处理/mime.md) - [mime/multipart 包](MIME处理/multipart.md) - [mime/quotedprintable 包](MIME处理/quotedprintable.md) ### 网络 - [net 包](网络/net.md) - [net/http 包](网络/http.md) - [net/http/cgi 包](网络/http/cgi/cgi.md) - [net/http/cookiejar 包](网络/http/cookiejar/cookiejar.md) - [net/http/fcgi 包](网络/http/fcgi/fcgi.md) - [net/http/httptest 包](网络/http/httptest/httptest.md) - [net/http/httptrace 包](网络/http/httptrace/httptrace.md) - [net/http/httputil 包](网络/http/httputil/httputil.md) - [net/http/pprof 包](网络/http/pprof/pprof.md) - [net/mail 包](网络/mail.md) - [net/netip 包](网络/netip.md) - [net/rpc 包](网络/rpc.md) - [net/rpc/jsonrpc 包](网络/rpc/jsonrpc/jsonrpc.md) - [net/smtp 包](网络/smtp.md) - [net/textproto 包](网络/textproto.md) - [net/url 包](网络/url.md) ### 操作系统接口 - [os 包](操作系统接口/os.md) - [os/exec 包](操作系统接口/exec.md) - [os/signal 包](操作系统接口/signal.md) - [os/user 包](操作系统接口/user.md) ### 路径 - [path 包](路径/path.md) - [path/filepath 包](路径/filepath.md) ### 插件 - [plugin 包](插件/plugin.md) ### 反射 - [reflect 包](反射/reflect.md) ### 正则表达式 - [regexp 包](正则表达式/regexp.md) - [regexp/syntax 包](正则表达式/syntax.md) ### 运行时 - [runtime 包](运行时/runtime.md) - [runtime/cgo 包](运行时/cgo.md) - [runtime/debug 包](运行时/debug.md) - [runtime/pprof 包](运行时/pprof.md) - [runtime/race 包](运行时/race.md) - [runtime/trace 包](运行时/trace.md) ### 切片 - [slices 包](切片/slices.md) ### 排序 - [sort 包](排序/sort.md) ### 字符串转换 - [strconv 包](字符串转换/strconv.md) ### 字符串操作 - [strings 包](字符串操作/strings.md) - [bytes 包](字节切片操作/bytes.md) ### 结构体 - [structs 包](结构体/structs.md) ### 同步原语 - [sync 包](同步原语/sync.md) - [sync/atomic 包](同步原语/atomic.md) ### 系统调用 - [syscall 包](系统调用/syscall.md) - [syscall/js 包](系统调用/js.md) ### 测试 - [testing 包](测试/testing.md) - [testing/iotest 包](测试/iotest.md) - [testing/quick 包](测试/quick.md) ### 文本 - [text/scanner 包](文本/scanner.md) - [text/tabwriter 包](文本/tabwriter.md) - [text/template 包](文本/template.md) - [text/template/parse 包](文本/template/parse/parse.md) ### 时间处理 - [time 包](时间处理/time.md) ### Unicode处理 - [unicode 包](Unicode处理/unicode.md) - [unicode/utf16 包](Unicode处理/utf16.md) - [unicode/utf8 包](Unicode处理/utf8.md) ### 唯一标识符 - [unique 包](唯一标识符/unique.md) ### 不安全操作 - [unsafe 包](不安全操作/unsafe.md) ### 弱引用 - [weak 包](弱引用/weak.md)