Created
April 15, 2019 14:39
-
-
Save 5idu/b4d197676e98daefb0819997e71e9a4f to your computer and use it in GitHub Desktop.
结构目录说明
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Go语言源码目录结构 | |
| ```shell | |
| $ go version | |
| $ go1.12.1 darwin/amd64 | |
| ``` | |
| ├──api:目录,包含所有API列表,方便IDE使用 | |
| ├──bin:一些Go的二进制命令文件 | |
| ├──doc:目录,Go语言的各种文档,官网上有的,这里基本会有,这也就是为什么说可以本地搭建“官网”。这里面有不少其他资源,比如gopher图标之类的 | |
| ├──lib:目录,文档模板 | |
| ├──misc:目录,其他的一些工具,相当于大杂烩,大部分是各种编辑器的Go语言支持,还有cgo的例子等 | |
| ├──pkg:目录,Go 基本工具依赖的库的文件 | |
| ├──src:目录,Go语言源码:基本工具(编译器等)、标准库 | |
| ├──test:目录,包含很多测试程序(并非_test.go方式的单元测试,而是包含main包的测试),包括一些fixbug测试。可以通过这个学到一些特性的使用。 | |
| ├──CONTRIBUTING.md:文件,如何向Go贡献代码 | |
| ├──CONTRIBUTORS:文件,第三方贡献者列表 | |
| ├──favicon.ico:文件,官网logo | |
| ├──PATENTS:文件,专利 | |
| ├──robots.txt:文件,搜索引擎robots文件 | |
| └──VERSION:文件,当前Go版本 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment