diff options
| author | Russ Cox <rsc@golang.org> | 2021-11-17 22:34:23 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2021-11-22 16:42:44 +0000 |
| commit | ab4f479b5c490d82ff2351f37f4e454da26483b1 (patch) | |
| tree | 59edcafd2ecc3bb50874abaa83f63f4bda3b0cda /_content/doc/tutorial | |
| parent | 7c7e6d209d9c0de0848e95a3d1a3077e078fc29f (diff) | |
| download | go-x-website-ab4f479b5c490d82ff2351f37f4e454da26483b1.tar.xz | |
all: make golang.org and go.dev links relative
Now that there is one site, update all golang.org links to go.dev.
But for any links being served from go.dev, make host-relative,
so that when serving golang.google.cn, we stay on that host as
much as possible.
Change-Id: Id6e1303059b5522846a64202bc1a8b81dc3854cd
Reviewed-on: https://go-review.googlesource.com/c/website/+/365095
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Diffstat (limited to '_content/doc/tutorial')
| -rw-r--r-- | _content/doc/tutorial/database-access.md | 4 | ||||
| -rw-r--r-- | _content/doc/tutorial/web-service-gin.md | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/_content/doc/tutorial/database-access.md b/_content/doc/tutorial/database-access.md index f2ede707..cdb62127 100644 --- a/_content/doc/tutorial/database-access.md +++ b/_content/doc/tutorial/database-access.md @@ -323,7 +323,7 @@ specific database. 1. Begin tracking the MySQL driver module as a dependency. - Use the [`go get`](https://golang.org/cmd/go/#hdr-Add_dependencies_to_current_module_and_install_them) + Use the [`go get`](/cmd/go/#hdr-Add_dependencies_to_current_module_and_install_them) to add the github.com/go-sql-driver/mysql module as a dependency for your own module. Use a dot argument to mean "get dependencies for code in the current directory." @@ -335,7 +335,7 @@ specific database. Go downloaded this dependency because you added it to the `import` declaration in the previous step. For more about dependency tracking, - see [Adding a dependency](https://golang.org/doc/modules/managing-dependencies#adding_dependency). + see [Adding a dependency](/doc/modules/managing-dependencies#adding_dependency). 2. From the command prompt, set the `DBUSER` and `DBPASS` environment variables for use by the Go program. diff --git a/_content/doc/tutorial/web-service-gin.md b/_content/doc/tutorial/web-service-gin.md index 99447ea0..934c7d42 100644 --- a/_content/doc/tutorial/web-service-gin.md +++ b/_content/doc/tutorial/web-service-gin.md @@ -198,7 +198,7 @@ adding dependencies first, then the code that depends on them. `gin.Context` is the most important part of Gin. It carries request details, validates and serializes JSON, and more. (Despite the similar name, this is different from Go's built-in - [`context`](https://golang.org/pkg/context/) package.) + [`context`](/pkg/context/) package.) * Call [`Context.IndentedJSON`](https://pkg.go.dev/github.com/gin-gonic/gin#Context.IndentedJSON) to serialize the struct into JSON and add it to the response. @@ -263,7 +263,7 @@ adding dependencies first, then the code that depends on them. 1. Begin tracking the Gin module as a dependency. - At the command line, use [`go get`](https://golang.org/cmd/go/#hdr-Add_dependencies_to_current_module_and_install_them) + At the command line, use [`go get`](/cmd/go/#hdr-Add_dependencies_to_current_module_and_install_them) to add the github.com/gin-gonic/gin module as a dependency for your module. Use a dot argument to mean "get dependencies for code in the current directory." |
