Skip to content

caudaganesh/go-generator

Repository files navigation

Go Report Card codecov

go-generator

Introduction

This repo contains multiple golang generators

Prerequisite

  • go 1.12 later

Installation

make install

Available Commands

gogen -h : show the help
gogen proto : generating proto
gogen interface : generating interface

Flags

Interface Generator

-c, --comment string   comment for the generated interface
-f, --file string      file path of the target struct
-h, --help             help for interface
-n, --name string      name for the generated interface
-o, --output string    destination output of the result
-p, --pkg string       package of the target struct
-e, --pkgName string   package name for the generated interface
-r, --target string    target struct for interface generator

Proto Generator

-f, --file string      file path to target struct
-g, --goPkg string     go package for generated proto (default "./proto")
-h, --help             help for proto
-n, --name string      message name for generated proto
-o, --output string    destination output of the result
-p, --pkgName string   package name for generated proto (default "proto")
-r, --target string    target struct

App Layer Generator

-p, --pkg string      package containing struct
-r, --target string   target struct

About

Bunch of golang generators

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published