Releases: webrpc/gen-golang
Releases · webrpc/gen-golang
v0.13.3
- Switch to .WithCause() in the generated code
- Implement
err.WithCause()
, a shorter version ofproto.ErrorWithCause()
- Deprecate
proto.ErrorWithCause()
- Implement
-errorStackTrace
opt-in option (errors with stack traces reflect-compatible with github.com/pkg/errors / golang.org/x/xerrors / golang.org/x/exp/errors) - Improve formatting
- Generates less server code
- Implements Allow header per RFC 9110
- Implements
-fixEmptyArrays
option to force empty array[]
instead ofnull
in JSON - Removes deprecated
ioutils
pkg - Adds support for type meta to service method arguments
v0.13.2
- Implement
err.WithCause()
, a shorter version ofproto.ErrorWithCause()
- Deprecate
proto.ErrorWithCause()
- Implement
-errorStackTrace
opt-in option (errors with stack traces reflect-compatible with github.com/pkg/errors / golang.org/x/xerrors / golang.org/x/exp/errors) - Improve formatting
v0.13.1
v0.12.5
Fix Enum generated method receiver (#30)
v0.12.4
Try to fix error on webrpc repo command failed: template: main.go.tmpl:8:32: executing "main" at <eq .Opts.types "false">: error calling eq: incompatible types for comparison
v0.12.3
Simplify Enums from JSONMarshaler to TextMarshaler interface (#29) * Simplify Enums from JSONMarshaler to TextMarshaler interface Compared to JSONMarshaler interface, this removes: 1. an extra bytes.NewBufferString() buffer during the marshaling 2. an extra json.Unmarshal() call during the unmarshaling 3. need for "bytes" import in the server-only code * Regenerate examples
v0.12.2
Implement -types=true|false option (true by default) (#28)
v0.12.1
Fix server imports & indentation (#25)
v0.12.0
Implement faster JSON (un)marshaling via jsoniter pkg (#24)
webrpc-gen -schema=proto.ridl -target=golang -client -json=jsoniter -out=client.gen.go
Fixes webrpc/webrpc#20
v0.11.4
Fix uppercase method input/return arguments in server code too (#23) Follow up for #22. This change matches the TypeScript generator: https://github.com/webrpc/gen-typescript/blob/master/types.go.tmpl#L51-L63 Given the following schema: service ExampleService - GetUser(UserID: uint64) => (USER: User) The golang generator wrongly generated "userID" and "uSER" arguments over JSON.