builder-pattern-codegen

command module
v0.0.0-...-7f6ea35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

README

builder-pattern-codegen

This tool generates builder-pattern code for golang.

How to build

To build executable, execute following command:

go build

How to generate builder-pattern code

To generate builder-pattern code for your structure, define your structure in following way:

package PACKAGE_NAME

type STRUCTURE_NAME struct {
    field1 type // comment
    field2 type //comment
}

Define your package name and license in following way:

//
// LICENSE 
//

To generate code, use following command:

builder-pattern-codegen -file=./example/structure -dir=$PWD/generated -boilerplate=./example/boilerplate

Note: Make sure directory exists.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL