v0.3.1
New features
Add support for embedding #6
This pull-request makes this tool support embedded structure fields.
example:
type Embedded struct {
Bar string
}
//go:generate gonstructor --type=StructureWithEmbedding --constructorTypes=allArgs,builder --withGetter
type StructureWithEmbedding struct {
Embedded
foo string
}
//go:generate gonstructor --type=StructureWithPointerEmbedding --constructorTypes=allArgs,builder --withGetter
type StructureWithPointerEmbedding struct {
*Embedded
foo string
}
Notes
Why v0.3.1
?
v0.3.0
is reverted because that had broken.