Skip to content

Releases: moznion/gonstructor

v0.5.1

28 Jun 01:52
54b83aa
Compare
Choose a tag to compare

Fixes

  • fix Generation error on Go 1.22 #27 (@doilux)
  • fix: panic when generating in package with generics #26 (@jj-style)

Maintenance

  • Remove the typo " in the README file #24 (@ LintaoAmons)
  • Drop the unsupported go runtime versions #28 (@moznion)
  • Upgrade GitHub Actions actions #29 (@moznion)

v0.5.0

25 Jan 20:51
cc4e166
Compare
Choose a tag to compare

Enhancements

  • fix: multiple types import #21

Maintenance

v0.4.2

12 Jan 05:41
Compare
Choose a tag to compare

Enhancements

  • Fix builder to use toLowerCamel for assignment parameter #20

Maintenance

v0.4.1

23 Aug 22:33
d005659
Compare
Choose a tag to compare

What's Changed

Bug fixes

  • Truncate and open a file when it open that file at the first time #18

Maintenance

  • Use golanglint-ci instead of golint #19

v0.4.0

22 Aug 08:46
c03fc74
Compare
Choose a tag to compare

New Features

  • Accept the multiple --type options in order to output the generated code of the multiple types into a single file #14
  • Support -propagateInitFuncReturns CLI option #16

Maintenances

  • update go to 1.19, update deps, fix #9 #11

Documents

  • add note about goimports #7

v0.3.1

04 Feb 13:55
5bed476
Compare
Choose a tag to compare

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

v0.2.0

01 Jun 08:26
Compare
Choose a tag to compare

Changelog

#4 avoid generating long lines

v0.1.0

25 Feb 09:40
c15c70b
Compare
Choose a tag to compare

Changelog

  • Use own toLowerCamel for arguments since ID must be id not iD. #1 (@mattn++)
  • Add installation guide #2 (@Mushus++)
  • add -init parameter #3 (@kovetskiy++)

v0.0.1

08 Dec 12:52
2a5f666
Compare
Choose a tag to compare

Original release