command
module
Version:
v0.0.0-...-43fbcb5
Opens a new window with list of versions in this module.
Published: Oct 31, 2022
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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/aruga-inc/go-genconstructor
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
genconstructor is constructor generator for Go.
|
genconstructor is constructor generator for Go. |
Click to show internal directories.
Click to hide internal directories.