.PHONY: fmt setup test lint

fmt:
	go fmt ./...
	goimports -w lib

setup:
	which go || (echo "install go" && exit 1)
	go get -u github.com/golangci/golangci-lint/cmd/golangci-lint

test:
	go test ./...

lint:
	golangci-lint run
