.PHONY=all test cov covhtml clean
all:
go1.18beta1 build -ldflags='-s -w'
test:
go1.18beta1 test ./...
testjson:
go1.18beta1 test -json ./...
cov:
go1.18beta1 test -coverprofile=coverage.out ./... && \
go1.18beta1 tool cover -func=coverage.out
covhtml:
go1.18beta1 test -coverprofile=coverage.out ./... && \
go1.18beta1 tool cover -html=coverage.out -o coverage.html && \
xdg-open ./coverage.html
clean:
go1.18beta1 clean