Feat: support nested folders in namespace (#87)

This MR fixes an issue with nested namespaces. It also adds CI to the project for Go tests.
This commit is contained in:
Louis LIN
2023-11-13 03:11:37 +01:00
committed by GitHub
parent 80b597e56a
commit 59557e464b
6 changed files with 243 additions and 25 deletions

View File

@@ -1,2 +1,19 @@
compile:
cd cmd && go build -o bin && mv bin ../bin
default: help
PROJECTNAME=$(shell basename "$(PWD)")
## compile: build golang project
compile:
@cd cmd && go build -o bin && mv bin ../bin
## test: run golang project tests
test:
@cd cmd && go test -v
.PHONY: help
all: help
help: makefile
@echo
@echo " Choose a command run in "$(PROJECTNAME)":"
@echo
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@echo