Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published

Languages