You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contradiction: The description for 'replacement-path' says:
"[...] If this is a module path, you must specify a _replacement-version_ value. [...]"
But the following example shows the replacement of a module path without a replacement version value:
"replace example.com/othermodule => example.com/myfork/othermodule"
Section 'exclude', description of 'module-version":
"If this version number is omitted, all versions of the module are replaced with the content on the right side of the arrow."
But an 'exclude' directive doesn't have an arrow. This sentence seems to be copy&pasted from the 'replace' directive and wrong.
Contradiction:
"These directives are ignored in modules that depend on the current module."
vs. later
"These directives are ignored in modules that are dependencies of the current module."
Which one is it?
Formatting: In the first example one line is not correctly indented.
Formatting: "_replacement-version_", "_replacement-path_". The underscores are probably not intended, but unsupported Markdown syntax.
I read the new documentation on modules (which is great, btw) and took notes of mistakes I encountered.
https://golang.org/doc/modules/gomod-ref
Contradiction: The description for 'replacement-path' says:
"[...] If this is a module path, you must specify a _replacement-version_ value. [...]"
But the following example shows the replacement of a module path without a replacement version value:
"
replace example.com/othermodule => example.com/myfork/othermodule"Section 'exclude', description of 'module-version":
"If this version number is omitted, all versions of the module are replaced with the content on the right side of the arrow."
But an 'exclude' directive doesn't have an arrow. This sentence seems to be copy&pasted from the 'replace' directive and wrong.
Contradiction:
"These directives are ignored in modules that depend on the current module."
vs. later
"These directives are ignored in modules that are dependencies of the current module."
Which one is it?
Formatting: In the first example one line is not correctly indented.
Formatting: "_replacement-version_", "_replacement-path_". The underscores are probably not intended, but unsupported Markdown syntax.
https://golang.org/doc/tutorial/create-module
"This tutorial's sequence includes six brief topics [...]"
Followed by a numbered list of seven topics. s/six/seven/
https://golang.org/doc/tutorial/call-module-code
Broken link: "Here, the replace directive [...]"
Broken tutorial: "In the hello directory, run go build to make Go locate the module and add it as a dependency to the go.mod file."
Starting with Go 1.16 'go build' doesn't add dependencies anymore, which breaks this tutorial (similar to x/website: Getting Started tutorial doesn't work with Go 1.16 #43672).
https://golang.org/doc/tutorial/getting-started
Outdated description: "3. On the Doc tab, under Index, [...]"
The former Doc tab is a menu item named 'Documentation' on the left side now.
https://golang.org/doc/modules/managing-dependencies
Broken link: "See package discovery."
Typo: "One you've discovered" s/One/Once/
https://golang.org/doc/modules/version-numbers
https://golang.org/doc/modules/publishing
Typo: "6. [...] with 1nformation about [...]"
s/1nformation/information/
Broken links: "go get command" (twice)
here: "[ ... ] and run the go get command [...]",
and here: "They can run the go get command [...]
https://golang.org/doc/modules/major-version
Invalid syntax:
"Old import statement:
import example.com/mymodule/package1New import statement:
import example.com/mymodule/v2/package1"Package paths must be in quotes.
General