An opinionated go microservice generator using the Yeoman generator. Requires node to be installed.
You will need yeoman (and therefore node) + go installed. Also, GOPATH and GOBIN must be correctly configured in your environment (or just add your go/bin to the PATH variable).
This project has several yeoman targets, which can be called separately. However, the default target should generate a simple Go project structure.
yo sanikgo
: generates a basic project with main needed filesyo sanikgo:[target]
: see available targets
Generates all base files, including go.mod
, cmd/main.go
, Dockerfile
and some base folder following go package structure standards.
Generates a rest API using an openapi generator (uses oapi-codegen underneath)