Releases: thriftrw/thriftrw-go
Releases · thriftrw/thriftrw-go
v1.25.0
v1.24.0
Added
- Generate
Default_*
methods that construct Thrift structs with defined
default values pre-populated.
Changed
- gen: Redefine Options.Plugin as a struct usable outside go.uber.org/thriftrw.
Fixed
- Serializing generated Thrift objects no longer mutates them with default
values for unspecified fields.
v1.23.0
Added
- Support opting out of the
omitempty
JSON option by adding!omitempty
to the
JSON struct tag.
Changed
- Drop library dependency in tools.go. This includes:
github.com/golang/mock/mockgen
,
golang.org/x/lint
,golang.org/x/tools
,honnef.co/go/tools/cmd/staticcheck
.
v1.22.0
v1.21.0
Added
- Generated exceptions now include an
ErrorName()
method that returns the
name of the exception as defined in the Thrift file. - gen: Templates now have access to
enumItemName
to determine the Go-level
name of the enum item.
Changed
nil
slices are now treated as empty lists for fields oflist
type. This
relaxes the previous requirement of accepting only non-nil
slices for
requiredlist
fields. Note: this does not affectmap
andset
types
with unhashable keys slices are accepted.- Migrated to Go modules.