From dd62ebd406a23184ec072d38894a5a3aac141b0d Mon Sep 17 00:00:00 2001 From: Luciano Nooijen Date: Sat, 11 Sep 2021 00:57:07 +0200 Subject: Use go embed for templates (#50) Go 1.16 includes a `//go:embed` directive that obviates the need for bindata. Use `//go:embed` instead of bindata for templates used in sally. Signed-off-by: Luciano Nooijen Co-authored-by: Abhinav Gupta --- templates/templates.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 templates/templates.go (limited to 'templates/templates.go') diff --git a/templates/templates.go b/templates/templates.go new file mode 100644 index 0000000..40d229a --- /dev/null +++ b/templates/templates.go @@ -0,0 +1,9 @@ +package templates + +import _ "embed" + +//go:embed index.html +var Index string + +//go:embed package.html +var Package string -- cgit v1.2.3