aboutsummaryrefslogtreecommitdiff
path: root/_content/doc/tutorial/call-module-code.html
diff options
context:
space:
mode:
authorFrederik Zipp <fzipp@gmx.de>2021-02-17 21:13:25 +0100
committerSteve Traut <straut@google.com>2021-02-25 16:35:35 +0000
commitf1b7164c9ee200f6fa404b5d05201da62e9437f9 (patch)
tree942f97b4be3c239ae29ab594a6db588489aff167 /_content/doc/tutorial/call-module-code.html
parent7118d0ea1dc1b5ee7fefa8f70eeb7cf8e7a5833e (diff)
downloadgo-x-website-f1b7164c9ee200f6fa404b5d05201da62e9437f9.tar.xz
_content/doc: fix typos, broken links, and text formatting
For golang/go#44241 Change-Id: Ie23c99c6e36c618d0a3135167cf780f02ea3e3ea Reviewed-on: https://go-review.googlesource.com/c/website/+/293229 Run-TryBot: Steve Traut <straut@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Steve Traut <straut@google.com> Trust: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to '_content/doc/tutorial/call-module-code.html')
-rw-r--r--_content/doc/tutorial/call-module-code.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/_content/doc/tutorial/call-module-code.html b/_content/doc/tutorial/call-module-code.html
index b7f7649f..3c3602b8 100644
--- a/_content/doc/tutorial/call-module-code.html
+++ b/_content/doc/tutorial/call-module-code.html
@@ -135,9 +135,9 @@ go 1.14
<p>
Here, the
- <a href="https://golang.org/ref/mod#tmp_15"
- ><code>replace</code> directive</a
- >
+ <a href="/ref/mod#go-mod-file-replace">
+ <code>replace</code> directive
+ </a>
tells Go to replace the module path (the URL
<code>example.com/greetings</code>) with a path you specify. In this
case, that's a greetings directory next to the hello directory.
@@ -172,9 +172,9 @@ replace example.com/greetings => ../greetings
<p>
To build the module, Go found the local code in the ../greetings
directory, then added a
- <a href="https://golang.org/ref/mod#tmp_13"
- ><code>require</code> directive</a
- >
+ <a href="/ref/mod#go-mod-file-require">
+ <code>require</code> directive
+ </a>
to specify that <code>hello</code> is dependent on (requires)
<code>example.com/greetings</code>. You created this dependency when
you imported the <code>greetings</code> package (contained in the