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 --- Makefile | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7264206..1fead78 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ GOLINT = go run github.com/golang/lint/golint STATICCHECK = go run honnef.co/go/tools/cmd/staticcheck -GOBINDATA = go run github.com/go-bindata/go-bindata/go-bindata .PHONY: all all: test @@ -12,9 +11,6 @@ build: .PHONY: generate generate: bindata.go -bindata.go: templates/* - $(GOBINDATA) templates - .PHONY: install install: go install . -- cgit v1.2.3