From 9259c5cdcdccbda7fd243d33aa564f0153d8c0ef Mon Sep 17 00:00:00 2001 From: FileGo Date: Sat, 1 Jan 2022 21:32:22 +0000 Subject: [PATCH] Moved index.go to go:embed (#392) --- web/index.go | 20 ++++---------------- web/index.html | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 web/index.html diff --git a/web/index.go b/web/index.go index 683f6a58..ef145b42 100644 --- a/web/index.go +++ b/web/index.go @@ -1,19 +1,7 @@ package web -// IndexTmpl html template for the start page -const IndexTmpl = ` - - - blocky - - -

blocky

- +import _ "embed" -

Version {{.Version}} Build time {{.BuildTime}}

- - ` +// IndexTmpl html template for the start page +//go:embed index.html +var IndexTmpl string diff --git a/web/index.html b/web/index.html new file mode 100644 index 00000000..aeeaa4b2 --- /dev/null +++ b/web/index.html @@ -0,0 +1,16 @@ + + + + blocky + + +

blocky

+ + +

Version {{.Version}} Build time {{.BuildTime}}

+ + \ No newline at end of file