goipgrep: refactor into module; pure-Go ping/resolve; cache+CI; drop binary

This commit is contained in:
tobias
2026-02-17 09:26:30 +01:00
parent 27760b0bf1
commit a931be4707
20 changed files with 1214 additions and 376 deletions

View File

@@ -0,0 +1,22 @@
.PHONY: build test fmt lint clean
UNAME_S := $(shell uname -s)
TEST_LDFLAGS :=
ifeq ($(UNAME_S),Darwin)
TEST_LDFLAGS := -ldflags='-linkmode=external'
endif
build:
./scripts/build.sh
test:
go test $(TEST_LDFLAGS) ./...
fmt:
gofmt -w .
lint:
go vet ./...
clean:
rm -rf dist