Releases: fatih/gomodifytags
Releases · fatih/gomodifytags
v1.17.0
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
- @laurixyz made their first contribution in #90
- @testwill made their first contribution in #106
- @vigo made their first contribution in #107
- @arp242 made their first contribution in #96
Full Changelog: v1.16.0...v1.17.0
v1.16.0
v1.15.0
v1.14.0
v1.13.0
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
v1.11.0
v1.10.0
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