LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // DO NOT EDIT THIS FILE. GENERATED BY mkdoc.sh. | 5 // DO NOT EDIT THIS FILE. GENERATED BY mkdoc.sh. |
6 // Edit the documentation in other files and rerun mkdoc.sh to generate this one
. | 6 // Edit the documentation in other files and rerun mkdoc.sh to generate this one
. |
7 | 7 |
8 /* | 8 /* |
9 Go is a tool for managing Go source code. | 9 Go is a tool for managing Go source code. |
10 | 10 |
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 | 868 |
869 the go tool will verify that https://example.org/?go-get=1 contains the | 869 the go tool will verify that https://example.org/?go-get=1 contains the |
870 same meta tag and then git clone https://code.org/r/p/exproj into | 870 same meta tag and then git clone https://code.org/r/p/exproj into |
871 GOPATH/src/example.org. | 871 GOPATH/src/example.org. |
872 | 872 |
873 New downloaded packages are written to the first directory | 873 New downloaded packages are written to the first directory |
874 listed in the GOPATH environment variable (see 'go help gopath'). | 874 listed in the GOPATH environment variable (see 'go help gopath'). |
875 | 875 |
876 The go command attempts to download the version of the | 876 The go command attempts to download the version of the |
877 package appropriate for the Go release being used. | 877 package appropriate for the Go release being used. |
878 Run 'go help install' for more. | 878 Run 'go help get' for more. |
| 879 |
| 880 Import path checking |
| 881 |
| 882 When the custom import path feature described above redirects to a |
| 883 known code hosting site, each of the resulting packages has two possible |
| 884 import paths, using the custom domain or the known hosting site. |
| 885 |
| 886 A package statement is said to have an "import comment" if it is immediately |
| 887 followed (before the next newline) by a comment of one of these two forms: |
| 888 |
| 889 » package math // import "path" |
| 890 » package math /* import "path" * / |
| 891 |
| 892 The go command will refuse to install a package with an import comment |
| 893 unless it is being referred to by that import path. In this way, import comments |
| 894 let package authors make sure the custom import path is used and not a |
| 895 direct path to the underlying code hosting site. |
| 896 |
| 897 See https://golang.org/s/go14customimport for details. |
879 | 898 |
880 | 899 |
881 Description of package lists | 900 Description of package lists |
882 | 901 |
883 Many commands apply to a set of packages: | 902 Many commands apply to a set of packages: |
884 | 903 |
885 go action [packages] | 904 go action [packages] |
886 | 905 |
887 Usually, [packages] is a list of import paths. | 906 Usually, [packages] is a list of import paths. |
888 | 907 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 | 1121 |
1103 The entire test file is presented as the example when it contains a single | 1122 The entire test file is presented as the example when it contains a single |
1104 example function, at least one other function, type, variable, or constant | 1123 example function, at least one other function, type, variable, or constant |
1105 declaration, and no test or benchmark functions. | 1124 declaration, and no test or benchmark functions. |
1106 | 1125 |
1107 See the documentation of the testing package for more information. | 1126 See the documentation of the testing package for more information. |
1108 | 1127 |
1109 | 1128 |
1110 */ | 1129 */ |
1111 package main | 1130 package main |
LEFT | RIGHT |