Simple product-crud using the Go stdlib. This also includes the use of go-routines and channels to create products efficiently.
-
To build target:
-
go build -o bin/api ./cmd/api/
-
To run target:
-
go run ./cmd/api
-
To lint code
-
golangci-lint run ./...
-
To check code complexity
-
gocyclo -over 7 .
-
To delete build:
-
rm -rf bin
make build-api
make run
make lint
make cyclomatic
make clean