| archive/tar |
Package tar 实现了对 tar 存档的访问。 |
| archive/zip |
zip 包提供对 ZIP 归档文件的读写支持。 |
| bufio |
bufio 包实现了带缓冲的 I/O 操作。 |
| bytes |
Package bytes 实现了用于操作字节切片的函数。 |
| cmp |
Package cmp provides types and functions related to comparing ordered values. |
| compress/bzip2 |
Package bzip2 implements bzip2 decompression. |
| compress/flate |
Package flate implements the DEFLATE compressed data format, described in RFC 1951. |
| compress/gzip |
Package gzip implements reading and writing of gzip format compressed files, as specified in RFC 1952. |
| compress/lzw |
Package lzw implements the Lempel-Ziv-Welch compressed data format, described in T. A. Welch, “A Technique for High-Performance Data Compression”, Computer, 17(6) (June 1984), pp 8-19. |
| compress/zlib |
Package zlib implements reading and writing of zlib format compressed data, as specified in 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 provides a generic interface around SQL (or SQL-like) databases. |
| 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 provides access to files embedded in the running Go program. |
| encoding |
Package encoding defines interfaces shared by other packages that convert data to and from byte-level and textual representations. |
| errors |
Package errors implements functions to manipulate errors. |
| expvar |
Package expvar provides a standardized interface to public variables, such as operation counters in servers. |
| flag |
Package flag implements command-line flag parsing. |
| 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 provides basic definitions and operations related to iterators over sequences. |
| log |
Package log implements a simple logging package. |
| maps |
Package maps 定义了对任何类型的 map 都有用的各种函数。 |
| math |
Package math provides basic constants and mathematical functions. |
| 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 provides a platform-independent interface to operating system functionality. |
| path |
Package path implements utility routines for manipulating slash-separated paths. |
| 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 |
Package structs defines marker types that can be used as struct fields to modify the properties of a struct. |
| 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 provides support for automated testing of Go packages. |
| text/scanner |
Package scanner 提供 UTF-8 编码文本的扫描器和分词器。 |
| text/tabwriter |
Package tabwriter 实现了一个写入过滤器(tabwriter.Writer),可将输入中的制表符分隔列 转换为格式正确的对齐文本。 |
| text/template |
Package template 实现了用于生成文本输出的数据驱动模板。 |
| time |
Package time provides functionality for measuring and displaying time. |
| unicode |
unicode 包提供了用于测试 Unicode 码点某些属性的数据和函数。 |
| unique |
The unique package provides facilities for canonicalizing ("interning") comparable values. |
| 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. |