feat(add solutions reference for challenge 01-concurrent-aggregator)

This commit is contained in:
medunes
2026-01-22 01:14:03 +01:00
committed by Mohamed Younes
parent d44f1a86d9
commit ccd2ec1cce
14 changed files with 769 additions and 5 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
test:
go run gotest.tools/gotestsum@latest --format=testdox -- -covermode=atomic -coverprofile=coverage.txt ./...
benchmark:
go test -bench=. -benchmem ./...
format:
go fmt ./...
format-check:
@UNFORMATTED_FILES=$$(gofmt -l .); \
if [ -n "$$UNFORMATTED_FILES" ]; then \
echo "::error::The following files are not formatted correctly:"; \
echo "$$UNFORMATTED_FILES"; \
echo "--- Diff ---"; \
gofmt -d .; \
exit 1; \
fi
.PHONY: test format benchmark format-check