Skip to content

martinreus/generator-sanikgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generator-sanikgo

An opinionated go microservice generator using the Yeoman generator. Requires node to be installed.

Before you proceed

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).

What is generated?

This project has several yeoman targets, which can be called separately. However, the default target should generate a simple Go project structure.

How to use

  • yo sanikgo: generates a basic project with main needed files
  • yo sanikgo:[target]: see available targets

Available targets

sanikgo:base (also invoked when not specifying any target)

Generates all base files, including go.mod, cmd/main.go, Dockerfile and some base folder following go package structure standards.

sanikgo:openapi

Generates a rest API using an openapi generator (uses oapi-codegen underneath)

About

An opinionated golang microservice generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published