diff options
Diffstat (limited to 'pkg/templates/templates.go')
| -rw-r--r-- | pkg/templates/templates.go | 4 |
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}}"> |
