summaryrefslogtreecommitdiff
path: root/_content/doc/tutorial/call-module-code/index.adoc
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2024-03-21 05:13:45 +0700
committerShulhan <m.shulhan@gmail.com>2024-03-21 05:41:29 +0700
commit03a9d77abfdf7ffc5d43fb7761aa1faaa5eeb3f7 (patch)
tree580a859a21191e1f73f01c8e727ccb6b2e3eef6d /_content/doc/tutorial/call-module-code/index.adoc
parent1a84401abde75de0d975d1fc1d5236c70034cd42 (diff)
downloadgolang-id-web-03a9d77abfdf7ffc5d43fb7761aa1faaa5eeb3f7.tar.xz
all: tambah akhiran "/" pada "link:" untuk mengurangi HTTP redirect 304
Tautan yang mengarah ke directori, bila tidak diakhiri dengan "/" akan di-_redirect_ otomatis ke "/". Misalnya, "GET /ref/spec" akan mengakibatkan dua kali request, GET /ref/spec => 304 GEt /ref/spec/ => 200
Diffstat (limited to '_content/doc/tutorial/call-module-code/index.adoc')
-rw-r--r--_content/doc/tutorial/call-module-code/index.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/_content/doc/tutorial/call-module-code/index.adoc b/_content/doc/tutorial/call-module-code/index.adoc
index 1880d5e..9ac7c09 100644
--- a/_content/doc/tutorial/call-module-code/index.adoc
+++ b/_content/doc/tutorial/call-module-code/index.adoc
@@ -148,7 +148,7 @@ require example.com/greetings v0.0.0-00010101000000-000000000000
Perintah tersebut menemukan modul lokal dalam direktori "greetings", kemudian
menambahkan
-link:/doc/modules/gomod-ref#require[direktif "require"]
+link:/doc/modules/gomod-ref/#require[direktif "require"]
untuk menspesifikasikan bahwa "example.com/hello" membutuhkan
"example.com/greetings".
Kita memakai dependensi ini saat kita mengimpor paket "greetings" dalam
@@ -167,7 +167,7 @@ require example.com/greetings v1.1.0
----
Untuk informasi lebih lanjut tentang angka versi, lihat
-link:/doc/modules/version-numbers[Angka versi pada modul].
+link:/doc/modules/version-numbers/[Angka versi pada modul].
--
--