Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9)

Delta Between Two Patch Sets: src/cmd/go/doc.go

Issue 189760043: [release-branch.go1.4] code review 189760043: cmd/go: document import path checking (Closed)
Left Patch Set: Created 10 years, 3 months ago
Right Patch Set: diff -r b5c6a4abeb4cdb46c7c5824ffb14fa1697a0b82d https://code.google.com/p/go/ Created 10 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | src/cmd/go/help.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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
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
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
LEFTRIGHT
« no previous file | src/cmd/go/help.go » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b