Releases: moznion/gonstructor
Releases · moznion/gonstructor
v0.6.0
Breaking Changes
Since this version, it no longer supports the go v1.23 or earlier.
New Features
- feat: Option to return value instead of pointer #30 @jj-style
- Add support for specifying a prefix for generated setter methods #41 @moznion
Maintenance
- chore: Configure Renovate #34 @renovate-bot
- Update module github.com/iancoleman/strcase to v0.3.0 #35 @renovate-bot
- Update module github.com/moznion/gowrtr to v1.7.0 #36 @renovate-bot
- Simplify workflows release.yml #38 @moznion
- Refactor: rename internal method: s/withPrefix/withConditionalPrefix/g #39 @moznion
- Update module github.com/stretchr/testify to v1.11.1 #40 @renovate-bot
- 📝 doc #42 @moznion
v0.5.1
v0.5.0
v0.4.2
v0.4.1
v0.4.0
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.
Changelog
v0.2.0
v0.1.0
v0.0.1
Original release