Skip to content

Releases: fatih/gomodifytags

v1.17.0

15 Jul 07:56
0af24e1
Compare
Choose a tag to compare

What's Changed

  • Update README.md by @laurixyz in #90
  • Bump golang.org/x/tools from 0.0.0-20180824175216-6c1c5e93cdc1 to 0.6.0 by @dependabot in #97
  • Bump golang.org/x/tools from 0.6.0 to 0.7.0 by @dependabot in #98
  • chore: use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) by @testwill in #106
  • add TextMate2 bundle link by @vigo in #107
  • Dependency and CI updates by @fatih in #112
  • Don't double up underscores with -transform=snakecase by @arp242 in #96

New Contributors

Full Changelog: v1.16.0...v1.17.0

v1.16.0

22 Sep 19:21
46cec66
Compare
Choose a tag to compare

This release introduces a new titlecase transformation option. By passing the --transform titlecase flag, gomodifytags will transform the tags in the form of:

"BaseDomain"` -> `"Base Domain"

See related issue #65 and the PR introducing this change: #87

v1.15.0

17 Sep 07:45
21f72a1
Compare
Choose a tag to compare

This release adds the new --quiet flag. When passed, gomodifytags won't output the results to stdout. This flag might be helpful for users who use gomodifytags for scripting in conjunction with the -w flag.

Changes: #86

v1.14.0

25 Aug 07:47
6f01c01
Compare
Choose a tag to compare

This release changes the special keyword to format tag values from $field to {field}. It fixes the issue described in:

#76

Changes included in this release are: #85

v1.13.0

04 Nov 07:02
c502265
Compare
Choose a tag to compare

This release includes the changes from the PR: #64 gomodifytags handles now the following cases:

  • anonymous structs as function parameters
func test(arg struct {
 	Field int `json:"field"`
 }) {
 }
  • "pointer to struct" type declaration
var x *struct {
 	Field int `json:"field"`
 }
  • "array of struct" type declaration
var x []struct {
 	Field int
 }

and nested variants : "array of pointers to array of structs".

v1.12.0

25 Oct 08:03
d4b34d8
Compare
Choose a tag to compare

This release uses flag.CommandLine.Parse() instead of flag.Parse() to check for errors during flag parsing. This let us catch re-defined flag names.

Related changes: #75

v1.11.0

22 Oct 16:27
66ed821
Compare
Choose a tag to compare

The flag --format was already in use. v1.10.0 introduced a new feature that also provided the --format flag. This releases changes the flag to --template.

PR: #74

v1.10.0

22 Oct 05:19
128b480
Compare
Choose a tag to compare
v1.10.0 Pre-release
Pre-release

This release includes a new --format flag to change a struct tag's values based on the field name. This allows us to generate custom struct tags that don't follow the standard definition listed in https://golang.org/pkg/reflect/#StructTag. For a concrete example checkout the readme: https://github.com/fatih/gomodifytags#formatting-tag-values

Includes the changes from PR: #69

v1.9.0

12 Oct 22:57
9ad6f3e
Compare
Choose a tag to compare

Removes the vendor/ folder.

Changes: #71

v1.8.0

12 Oct 22:38
369b976
Compare
Choose a tag to compare

Bump github.com/fatih/structtag from v1.0.0 to v1.2.0

Related change: #70