Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
_example
genconstructor
.gitignore
LICENSE
README.md
main.go

README.md

go-genconstructor

Constructor generator for Go.

Usage

    //genconstructor [-p]
    type Foo struct {
        key string `required:"[constValue]"`
    }

with go generate command

    //go:generate go-genconstructor

Example

def ./_example/person.go

generated ./_example/example_constructor_gen.go

Installation

$ go get github.com/hori-ryota/go-genconstructor
You can’t perform that action at this time.