summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Paul <n@nc0.fr>2023-05-31 12:31:36 +0200
committerNicolas Paul <n@nc0.fr>2023-05-31 12:31:36 +0200
commit4d22d9feeb6104c18e0f710fdeec8ea0cbea726b (patch)
tree67a39ad2d779109c5aade56144aaf81ab381d713
parenta71a5563bd2148a566879d537c5d6249332799e7 (diff)
Omit inferred types
Signed-off-by: Nicolas Paul <n@nc0.fr>
-rw-r--r--pkg/templates/templates.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/templates/templates.go b/pkg/templates/templates.go
index 4e114c2..d92a43e 100644
--- a/pkg/templates/templates.go
+++ b/pkg/templates/templates.go
@@ -13,7 +13,7 @@ var (
//
// {{.Count}} corresponds to the timer—in seconds— before redirecting.
// {{.Redirect}} is the URL to redirect visitors to.
- indexTmpl *template.Template = template.Must(
+ indexTmpl = template.Must(
template.New("index").Parse(`<!DOCTYPE html>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="{{.Count}}; url='{{.Redirect}}'">
@@ -35,7 +35,7 @@ var (
//
// Templates support a specific set of substitutions which are documented
// here: https://github.com/golang/gddo/wiki/Source-Code-Links
- moduleTmpl *template.Template = template.Must(
+ moduleTmpl = template.Must(
template.New("module").Parse(`<!DOCTYPE html>
<meta charset="UTF-8">
<meta name="go-import" content="{{.Prefix}} {{.Vcs}} {{.Home}}">