.PHONY: .coverprofile

default: build

build:
	go build ./...

check: test

test: .coverprofile

.coverprofile:
	go test -coverprofile .coverprofile

cover: .coverprofile
	go tool cover -func .coverprofile

showcover: .coverprofile
	go tool cover -html .coverprofile

fmt:
	go fmt ./...

clean:
	go clean -i -cache
