Added surf http client

- updated Makefile
- updated dependencies
This commit is contained in:
2026-01-24 15:16:51 -06:00
parent 8c85da5472
commit 519f3f4f00
5 changed files with 97 additions and 24 deletions
+5 -10
View File
@@ -8,15 +8,15 @@ TEST_TIMEOUT ?= 20
# Print colorized log
define log
echo "\n\033[1;32m--- [$(@)] $(1) ---\033[0m\n"
echo "[$(@)] $(1)"
endef
.PHONY: all
all: lint fmt vet test test-coverage
all: fmt vet test test-coverage
.PHONY: usage
usage:
@echo "make [all|fmt|vet|lint|test|test-coverage]"
@echo "make [all|fmt|vet|test|test-coverage]"
.PHONY: fmt
fmt:
@@ -28,18 +28,13 @@ vet:
@$(call log,"Running vet")
@go vet -all $(LIST_PKG)
.PHONY: lint
lint:
@$(call log,"Running linter")
@golint -set_exit_status $(LIST_PKG)
.PHONY: test
test: fmt vet lint
test: fmt vet
@$(call log,"Running tests")
@go test -v -race -short -timeout $(TEST_TIMEOUT)s $(ARGS) $(LIST_PKG)
.PHONY: test-coverage
test-coverage: fmt vet lint
test-coverage: fmt vet
@$(call log,"Running tests with coverage")
@go test -v -race -short -timeout $(TEST_TIMEOUT)s $(ARGS) -coverprofile=coverage.out $(LIST_PKG)
@go tool cover -func=coverage.out