A powerful HTTP router and URL matcher for building Go web servers with 🦍
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
340 B

GOBIN=$(shell pwd)/bin
install-lint:
@if [ ! -f "$(GOBIN)/golangci-lint" ]; then \
curl -sSfL -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v1.42.0; \
fi
lint: install-lint
@echo "golangci-lint run ./..."
@$(GOBIN)/golangci-lint run ./...
test:
go test -race -failfast ./...