| archive/tar |
Package tar 实现了对 tar 存档的访问。 |
| archive/zip |
zip 包提供对 ZIP 归档文件的读写支持。 |
| bufio |
bufio 包实现了带缓冲的 I/O 操作。 |
| bytes |
Package bytes 实现了用于操作字节切片的函数。 |
| cmp |
Package cmp 提供与比较有序值相关的类型和函数。 |
| compress/bzip2 |
Package bzip2 实现了 bzip2 解压缩。 |
| compress/flate |
Package flate 实现了 RFC 1951 中描述的 DEFLATE 压缩数据格式。 |
| compress/gzip |
gzip 包实现了 gzip 格式压缩文件的读写, 格式规范见 RFC 1952。 |
| compress/lzw |
Package lzw 实现了 Lempel-Ziv-Welch 压缩数据格式, 该格式在 T. A. Welch 的 “A Technique for High-Performance Data Compression”, Computer, 17(6) (June 1984), pp 8-19 中有描述。 |
| compress/zlib |
zlib 包实现了 zlib 格式压缩数据的读写, 该格式由 RFC 1950 规定。 |
| container/heap |
Package heap 为任何实现了 heap.Interface 的类型提供堆操作。 |
| container/list |
Package list 实现了双向链表。 |
| container/ring |
Package ring 实现了循环链表的操作。 |
| context |
Package context defines the Context type, which carries deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes. |
| crypto |
Package crypto collects common cryptographic constants. |
| database/sql |
Package sql 提供了围绕 SQL(或类 SQL)数据库的通用接口。 |
| debug/buildinfo |
Package buildinfo provides access to information embedded in a Go binary about how it was built. |
| debug/dwarf |
Package dwarf provides access to DWARF debugging information loaded from executable files, as defined in the DWARF 2.0 Standard at http://dwarfstd.org/doc/dwarf-2.0.0.pdf. |
| debug/elf |
Package elf implements access to ELF object files. |
| debug/gosym |
Package gosym implements access to the Go symbol and line number tables embedded in Go binaries generated by the gc compilers. |
| debug/macho |
Package macho implements access to Mach-O object files. |
| debug/pe |
Package pe implements access to PE (Microsoft Windows Portable Executable) files. |
| debug/plan9obj |
Package plan9obj implements access to Plan 9 a.out object files. |
| embed |
Package embed 提供对嵌入到运行中的 Go 程序内的文件的访问。 |
| encoding |
Package encoding 定义了其他包共享的接口, 用于在数据和字节级与文本级表示之间进行转换。 |
| errors |
Package errors 实现了操作错误的函数。 |
| expvar |
Package expvar 提供了访问公开变量(例如服务器中的操作计数器)的标准接口。 |
| flag |
Package flag 实现命令行标志解析。 |
| fmt |
Package fmt 实现了格式化输入输出,其函数功能类似于C语言的 printf 和 scanf。 |
| go/ast |
Package ast declares the types used to represent syntax trees for Go packages. |
| go/build |
Package build gathers information about Go packages. |
| go/constant |
Package constant implements Values representing untyped Go constants and their corresponding operations. |
| go/doc |
Package doc extracts source code documentation from a Go AST. |
| go/format |
Package format implements standard formatting of Go source. |
| go/importer |
Package importer provides access to export data importers. |
| go/parser |
Package parser implements a parser for Go source files. |
| go/printer |
Package printer implements printing of AST nodes. |
| go/scanner |
Package scanner implements a scanner for Go source text. |
| go/token |
Package token defines constants representing the lexical tokens of the Go programming language and basic operations on tokens (printing, predicates). |
| go/types |
Package types declares the data types and implements the algorithms for type-checking of Go packages. |
| go/version |
Package version provides operations on [Go versions] in [Go toolchain name syntax]: strings like "go1.20", "go1.21.0", "go1.22rc2", and "go1.23.4-custom". |
| hash |
Package hash provides interfaces for hash functions. |
| html |
Package html 提供用于转义和反转义 HTML 文本的函数。 |
| image |
Package image implements a basic 2-D image library. |
| index/suffixarray |
Package suffixarray 使用内存中的后缀数组实现对数时间复杂度的子字符串搜索。 |
| io |
io 包提供 I/O 原语的基础接口。 |
| iter |
Package iter 提供与序列迭代器相关的基础定义和操作。 |
| log |
Package log 实现了一个简单的日志记录包。 |
| maps |
Package maps 定义了对任何类型的 map 都有用的各种函数。 |
| math |
math 包提供基本的常量和数学函数。 |
| mime |
Package mime implements parts of the MIME spec. |
| net |
Package net provides a portable interface for network I/O, including TCP/IP, UDP, domain name resolution, and Unix domain sockets. |
| os |
Package os 为操作系统功能提供与平台无关的接口。 |
| path |
Package path 实现了用于操作以斜杠分隔的路径的实用例程。 |
| plugin |
Package plugin implements loading and symbol resolution of Go plugins. |
| reflect |
Package reflect implements run-time reflection, allowing a program to manipulate objects with arbitrary types. |
| regexp |
Package regexp 实现了正则表达式搜索。 |
| runtime |
Package runtime contains operations that interact with Go's runtime system, such as functions to control goroutines. |
| slices |
Package slices 定义了对任何类型的切片都有用的各种函数。 |
| sort |
Package sort 为切片和用户自定义集合提供排序原语。 |
| strconv |
Package strconv 实现了基本数据类型与字符串表示之间的相互转换。 |
| strings |
Package strings 实现了用于操作 UTF-8 编码字符串的简单函数。 |
| structs |
structs 包定义了可用作结构体字段的标记类型, 以修改结构体的属性。 |
| sync |
Package sync provides basic synchronization primitives such as mutual exclusion locks. |
| syscall |
Package syscall contains an interface to the low-level operating system primitives. |
| testing |
Package testing 为 Go 包的自动化测试提供支持。 |
| text/scanner |
Package scanner 提供 UTF-8 编码文本的扫描器和分词器。 |
| text/tabwriter |
Package tabwriter 实现了一个写入过滤器(tabwriter.Writer),可将输入中的制表符分隔列 转换为格式正确的对齐文本。 |
| text/template |
Package template 实现了用于生成文本输出的数据驱动模板。 |
| time |
Package time 提供用于测量和显示时间的功能。 |
| unicode |
unicode 包提供了用于测试 Unicode 码点某些属性的数据和函数。 |
| unique |
unique 包提供对可比较值进行规范化("interning")的工具。 |
| unsafe |
Package unsafe contains operations that step around the type safety of Go programs. |
| weak |
Package weak provides ways to safely reference memory weakly, that is, without preventing its reclamation. |