diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5192f2d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +bin/ +.env +*_templ.go +.idea/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..840c638 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +.DEFAULT_GOAL := all + +# seems superfluous +#.PHONY: fmt vet build clean + +fmt: + go fmt ./... + +vet: fmt + go vet ./... + + +build: vet + mkdir -p bin + go build -o bin ./cmd/... + +test: build + go test -count=1 -coverprofile=testout/coverage.out ${TESTFLAGS} ./... + +clean: + rm -rf bin + +all: build diff --git a/cmd/go2junit/go2junit.go b/cmd/go2junit/go2junit.go new file mode 100644 index 0000000..99fd805 --- /dev/null +++ b/cmd/go2junit/go2junit.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello") +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..67b9e4c --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.wamblee.org/public/gotools + +go 1.23.3