From fd85215d5744998a53c6e11a7ce2a866badcd22c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 26 Oct 2024 04:08:35 -0500 Subject: go vet works --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b96172c --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +VERSION = $(shell git describe --tags) + +# create the go.mod and go.sum if this is a brand new repo +# REDOMOD = $(shell if [ -e go.mod ]; then echo go.mod; else echo no go mod; fi) +REDOMOD = $(shell if [ -e go.sum ]; then echo go.sum exists; else GO111MODULE= go mod init; GO111MODULE= go mod tidy; fi) + +all: + GO111MODULE=off go vet + +goimports: + goimports -w *.go + +redomod: + rm -f go.* + GO111MODULE= go mod init + GO111MODULE= go mod tidy + +clean: + rm -f go.* -- cgit v1.2.3