Go source code root directory structure

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

Go source code root directory structure

|–authors-file, official go language author list

|–contributors-file, third-party contributors list

|–license-file, Go Language release licensing agreement

|–patents-file, patent

|–readme-file, README file, everyone understand. Mention, often someone said: Go official website can not open ah, how to do? In fact, in the readme said this. The file also mentions that if you have a binary installation, you need to set the GOROOT environment variable, and if you put go in/usr/local/go, you can not set the environment variable (under Windows is C:\go). Of course, it is recommended to set goroot whenever you are. Also, make sure that the $goroot/bin is in the path directory.

|–version-file, current go version

|–api-directory with all API lists for easy access to the IDE

|–doc-directory, go language of the various documents, the official network has, there will be basically, this is why the local "official website" can be built. There are many other resources, such as the Gopher icon.

|–favicon.ico-file, official website logo

|–include-directory, the header file of the library that the Go base tool relies on

|–lib-Directory, document template

|–misc-directory, some other tools, the equivalent of a hodgepodge, most of the various editors go language support, as well as CGO examples, etc.

|–robots.txt-file, search engine robots file

|–src-directory, go Language Source: Basic tools (compiler, etc.), standard library

The |–test-directory contains many test programs (not _TEST.GO unit tests, but tests that contain the main package), including some fixbug tests. This can be used to learn some of the characteristics of the use.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.