Skip to content

v0.3.1

Compare
Choose a tag to compare
@github-actions github-actions released this 04 Feb 13:55
· 40 commits to master since this release
5bed476

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.

Changelog

5bed476 Merge pull request #6 from moznion/embedding