File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,16 @@ so that the `go` command can find and download the module. There are also
72
72
several [ lexical restrictions] ( #go-mod-file-ident ) on characters allowed in
73
73
module paths.
74
74
75
+ A module that will never be fetched as a dependency of any other module may use
76
+ any valid package path for its module path, but must take care not to collide
77
+ with paths that may be used by the module's dependencies or the Go standard
78
+ library. The Go standard library uses package paths that do not contain a dot in
79
+ the first path element, and the ` go ` command does not attempt to resolve such
80
+ paths from network servers. The paths ` example ` and ` test ` are reserved for
81
+ users: they will not be used in the standard library and are suitable for use in
82
+ self-contained modules, such as those defined in tutorials or example code or
83
+ created and manipulated as part of a test.
84
+
75
85
### Versions {#versions}
76
86
77
87
A <dfn >version</dfn > identifies an immutable snapshot of a module, which may be
You can’t perform that action at this time.
0 commit comments