go-genconstructor

command module
v0.0.0-...-afe507e Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: MIT Imports: 8 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
genconstructor is constructor generator for Go.
genconstructor is constructor generator for Go.

Jump to

Keyboard shortcuts

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