Skip to content

v1.13.0

Compare
Choose a tag to compare
@fatih fatih released this 04 Nov 07:02
c502265

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".