A Golang sample project with Hexagonal Arch.
Using Cobra-cli
Creating new product:
go run main.go cli -a=create -n=Product CLI -p=33.99
Getting product by ID:
go run main.go cli -a=get -i="35c68dee-e321-44cb-b1b1-4703ea71db12"
Starting server:
go run main.go http
Getting a product:
curl http://localhost:8080/product/38092168-d995-40ad-8e96-1419b2a6ddae