From b3437dac6d924d7065f47b71a6a7fec1b1dfb229 Mon Sep 17 00:00:00 2001 From: Bishnu Agrawal Date: Tue, 15 Nov 2022 15:59:52 +0530 Subject: [PATCH] update circuit breaker names format --- codegen/templates/http_client.tmpl | 3 +- codegen/templates/tchannel_client.tmpl | 3 +- .../example-gateway/build/clients/bar/bar.go | 4 +- .../example-gateway/build/clients/baz/baz.go | 3 +- .../build/clients/contacts/contacts.go | 4 +- .../build/clients/corge-http/corge-http.go | 4 +- .../build/clients/corge/corge.go | 3 +- .../build/clients/google-now/google-now.go | 4 +- .../build/clients/multi/multi.go | 4 +- .../clients/withexceptions/withexceptions.go | 4 +- .../clients-idl/clients/bar/bar/bar.go | 2738 ++++++++--------- .../clients-idl/clients/baz/base/base.go | 224 +- .../clients-idl/clients/baz/baz/baz.go | 2250 +++++++------- .../clients/contacts/contacts/contacts.go | 354 +-- .../clients-idl/clients/corge/corge/corge.go | 386 +-- .../clients-idl/clients/echo/echo.pb.yarpc.go | 16 +- .../clients-idl/clients/foo/base/base/base.go | 32 +- .../clients-idl/clients/foo/foo/foo.go | 96 +- .../clients/googlenow/googlenow/googlenow.go | 130 +- .../clients-idl/clients/multi/multi/multi.go | 194 +- .../withexceptions/withexceptions.go | 160 +- .../endpoints/app/demo/endpoints/abc/abc.go | 64 +- .../endpoints-idl/endpoints/bar/bar/bar.go | 1426 ++++----- .../endpoints-idl/endpoints/baz/baz/baz.go | 1314 ++++---- .../endpoints/bounce/bounce/bounce.go | 64 +- .../clientless/clientless/clientless.go | 258 +- .../endpoints/contacts/contacts/contacts.go | 354 +-- .../endpoints/foo/base/base/base.go | 32 +- .../endpoints-idl/endpoints/foo/foo/foo.go | 96 +- .../googlenow/googlenow/googlenow.go | 130 +- .../endpoints/models/meta/meta.go | 224 +- .../endpoints/multi/multi/multi.go | 194 +- .../endpoints/tchannel/baz/baz/baz.go | 514 ++-- .../endpoints/tchannel/echo/echo/echo.go | 64 +- .../endpoints/tchannel/quux/quux/quux.go | 64 +- .../withexceptions/withexceptions.go | 160 +- .../build/gen-code/clients/bar/bar/bar.go | 2642 ++++++++-------- .../gen-code/clients/foo/base/base/base.go | 32 +- .../build/gen-code/clients/foo/foo/foo.go | 96 +- .../endpoints/bounce/bounce/bounce.go | 64 +- .../endpoints/tchannel/echo/echo/echo.go | 64 +- .../proto-gen/clients/echo/echo.pb.yarpc.go | 32 +- .../clients/mirror/mirror.pb.yarpc.go | 32 +- .../mock-service/mock_init.go | 6 +- .../mock-service/mock_service.go | 6 +- .../services/selective-gateway/module/init.go | 6 +- test/endpoints/contacts/save_contacts_test.go | 2 +- .../circuitbreaker_test.go | 8 +- 48 files changed, 7274 insertions(+), 7290 deletions(-) diff --git a/codegen/templates/http_client.tmpl b/codegen/templates/http_client.tmpl index 20f48bc69..58003c5b9 100644 --- a/codegen/templates/http_client.tmpl +++ b/codegen/templates/http_client.tmpl @@ -132,8 +132,7 @@ func {{$exportName}}(deps *module.Dependencies) Client { deps.Default.Config.MustGetStruct("clients.{{$clientID}}.methodTimeoutMapping", &clientMethodTimeoutMapping) } else { //override the client overall-timeout with the client's method level timeout - for _, serviceMethodName := range methodNames { - methodName := strings.Split(serviceMethodName, "::")[1] + for methodName := range methodNames { clientMethodTimeoutMapping[methodName] = int64(timeoutVal) } } diff --git a/codegen/templates/tchannel_client.tmpl b/codegen/templates/tchannel_client.tmpl index 8abd327f7..2780abbf7 100644 --- a/codegen/templates/tchannel_client.tmpl +++ b/codegen/templates/tchannel_client.tmpl @@ -149,8 +149,7 @@ func {{$exportName}}(deps *module.Dependencies) Client { if deps.Default.Config.ContainsKey("clients.{{$clientID}}.methodTimeoutMapping") { deps.Default.Config.MustGetStruct("clients.{{$clientID}}.methodTimeoutMapping", &clientMethodTimeoutMapping) } else { - for serviceMethodName := range methodNames { - methodName := strings.Split(serviceMethodName, "::")[1] + for _, methodName := range methodNames { clientMethodTimeoutMapping[methodName] = int64(timeoutVal) } } diff --git a/examples/example-gateway/build/clients/bar/bar.go b/examples/example-gateway/build/clients/bar/bar.go index 6199cfe43..e65161453 100644 --- a/examples/example-gateway/build/clients/bar/bar.go +++ b/examples/example-gateway/build/clients/bar/bar.go @@ -28,7 +28,6 @@ import ( "fmt" "net/url" "strconv" - "strings" "time" "github.com/afex/hystrix-go/hystrix" @@ -347,8 +346,7 @@ func NewClient(deps *module.Dependencies) Client { deps.Default.Config.MustGetStruct("clients.bar.methodTimeoutMapping", &clientMethodTimeoutMapping) } else { //override the client overall-timeout with the client's method level timeout - for _, serviceMethodName := range methodNames { - methodName := strings.Split(serviceMethodName, "::")[1] + for methodName := range methodNames { clientMethodTimeoutMapping[methodName] = int64(timeoutVal) } } diff --git a/examples/example-gateway/build/clients/baz/baz.go b/examples/example-gateway/build/clients/baz/baz.go index b3afb745b..326a46086 100644 --- a/examples/example-gateway/build/clients/baz/baz.go +++ b/examples/example-gateway/build/clients/baz/baz.go @@ -315,8 +315,7 @@ func NewClient(deps *module.Dependencies) Client { if deps.Default.Config.ContainsKey("clients.baz.methodTimeoutMapping") { deps.Default.Config.MustGetStruct("clients.baz.methodTimeoutMapping", &clientMethodTimeoutMapping) } else { - for serviceMethodName := range methodNames { - methodName := strings.Split(serviceMethodName, "::")[1] + for _, methodName := range methodNames { clientMethodTimeoutMapping[methodName] = int64(timeoutVal) } } diff --git a/examples/example-gateway/build/clients/contacts/contacts.go b/examples/example-gateway/build/clients/contacts/contacts.go index a66e34004..7c010f1de 100644 --- a/examples/example-gateway/build/clients/contacts/contacts.go +++ b/examples/example-gateway/build/clients/contacts/contacts.go @@ -26,7 +26,6 @@ package contactsclient import ( "context" "fmt" - "strings" "time" "github.com/afex/hystrix-go/hystrix" @@ -113,8 +112,7 @@ func NewClient(deps *module.Dependencies) Client { deps.Default.Config.MustGetStruct("clients.contacts.methodTimeoutMapping", &clientMethodTimeoutMapping) } else { //override the client overall-timeout with the client's method level timeout - for _, serviceMethodName := range methodNames { - methodName := strings.Split(serviceMethodName, "::")[1] + for methodName := range methodNames { clientMethodTimeoutMapping[methodName] = int64(timeoutVal) } } diff --git a/examples/example-gateway/build/clients/corge-http/corge-http.go b/examples/example-gateway/build/clients/corge-http/corge-http.go index c1e9bcb43..4f85b52cc 100644 --- a/examples/example-gateway/build/clients/corge-http/corge-http.go +++ b/examples/example-gateway/build/clients/corge-http/corge-http.go @@ -28,7 +28,6 @@ import ( "fmt" "net/textproto" "regexp" - "strings" "time" "github.com/afex/hystrix-go/hystrix" @@ -148,8 +147,7 @@ func NewClient(deps *module.Dependencies) Client { deps.Default.Config.MustGetStruct("clients.corge-http.methodTimeoutMapping", &clientMethodTimeoutMapping) } else { //override the client overall-timeout with the client's method level timeout - for _, serviceMethodName := range methodNames { - methodName := strings.Split(serviceMethodName, "::")[1] + for methodName := range methodNames { clientMethodTimeoutMapping[methodName] = int64(timeoutVal) } } diff --git a/examples/example-gateway/build/clients/corge/corge.go b/examples/example-gateway/build/clients/corge/corge.go index 89979bf58..506c55f94 100644 --- a/examples/example-gateway/build/clients/corge/corge.go +++ b/examples/example-gateway/build/clients/corge/corge.go @@ -134,8 +134,7 @@ func NewClient(deps *module.Dependencies) Client { if deps.Default.Config.ContainsKey("clients.corge.methodTimeoutMapping") { deps.Default.Config.MustGetStruct("clients.corge.methodTimeoutMapping", &clientMethodTimeoutMapping) } else { - for serviceMethodName := range methodNames { - methodName := strings.Split(serviceMethodName, "::")[1] + for _, methodName := range methodNames { clientMethodTimeoutMapping[methodName] = int64(timeoutVal) } } diff --git a/examples/example-gateway/build/clients/google-now/google-now.go b/examples/example-gateway/build/clients/google-now/google-now.go index 14d4398c9..6d4349c9a 100644 --- a/examples/example-gateway/build/clients/google-now/google-now.go +++ b/examples/example-gateway/build/clients/google-now/google-now.go @@ -26,7 +26,6 @@ package googlenowclient import ( "context" "fmt" - "strings" "time" "github.com/afex/hystrix-go/hystrix" @@ -113,8 +112,7 @@ func NewClient(deps *module.Dependencies) Client { deps.Default.Config.MustGetStruct("clients.google-now.methodTimeoutMapping", &clientMethodTimeoutMapping) } else { //override the client overall-timeout with the client's method level timeout - for _, serviceMethodName := range methodNames { - methodName := strings.Split(serviceMethodName, "::")[1] + for methodName := range methodNames { clientMethodTimeoutMapping[methodName] = int64(timeoutVal) } } diff --git a/examples/example-gateway/build/clients/multi/multi.go b/examples/example-gateway/build/clients/multi/multi.go index 178a1f5de..f785a11f8 100644 --- a/examples/example-gateway/build/clients/multi/multi.go +++ b/examples/example-gateway/build/clients/multi/multi.go @@ -26,7 +26,6 @@ package multiclient import ( "context" "fmt" - "strings" "time" "github.com/afex/hystrix-go/hystrix" @@ -111,8 +110,7 @@ func NewClient(deps *module.Dependencies) Client { deps.Default.Config.MustGetStruct("clients.multi.methodTimeoutMapping", &clientMethodTimeoutMapping) } else { //override the client overall-timeout with the client's method level timeout - for _, serviceMethodName := range methodNames { - methodName := strings.Split(serviceMethodName, "::")[1] + for methodName := range methodNames { clientMethodTimeoutMapping[methodName] = int64(timeoutVal) } } diff --git a/examples/example-gateway/build/clients/withexceptions/withexceptions.go b/examples/example-gateway/build/clients/withexceptions/withexceptions.go index 15b9abe2f..45d79a62e 100644 --- a/examples/example-gateway/build/clients/withexceptions/withexceptions.go +++ b/examples/example-gateway/build/clients/withexceptions/withexceptions.go @@ -26,7 +26,6 @@ package withexceptionsclient import ( "context" "fmt" - "strings" "time" "github.com/afex/hystrix-go/hystrix" @@ -106,8 +105,7 @@ func NewClient(deps *module.Dependencies) Client { deps.Default.Config.MustGetStruct("clients.withexceptions.methodTimeoutMapping", &clientMethodTimeoutMapping) } else { //override the client overall-timeout with the client's method level timeout - for _, serviceMethodName := range methodNames { - methodName := strings.Split(serviceMethodName, "::")[1] + for methodName := range methodNames { clientMethodTimeoutMapping[methodName] = int64(timeoutVal) } } diff --git a/examples/example-gateway/build/gen-code/clients-idl/clients/bar/bar/bar.go b/examples/example-gateway/build/gen-code/clients-idl/clients/bar/bar/bar.go index bda3ba24c..ccad0769e 100644 --- a/examples/example-gateway/build/gen-code/clients-idl/clients/bar/bar/bar.go +++ b/examples/example-gateway/build/gen-code/clients-idl/clients/bar/bar/bar.go @@ -31,14 +31,14 @@ type BarException struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarException) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -64,16 +64,16 @@ func (v *BarException) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a BarException struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarException -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarException +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarException) FromWire(w wire.Value) error { var err error @@ -250,14 +250,14 @@ type BarRequest struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarRequest) ToWire() (wire.Value, error) { var ( fields [6]wire.Field @@ -338,16 +338,16 @@ func _Long_Read(w wire.Value) (Long, error) { // An error is returned if we were unable to build a BarRequest struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarRequest -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarRequest) FromWire(w wire.Value) error { var err error @@ -781,14 +781,14 @@ type BarRequestRecur struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarRequestRecur) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -828,16 +828,16 @@ func _BarRequestRecur_Read(w wire.Value) (*BarRequestRecur, error) { // An error is returned if we were unable to build a BarRequestRecur struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarRequestRecur -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarRequestRecur +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarRequestRecur) FromWire(w wire.Value) error { var err error @@ -1132,14 +1132,14 @@ func (_Map_String_I32_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarResponse) ToWire() (wire.Value, error) { var ( fields [7]wire.Field @@ -1282,16 +1282,16 @@ func _BarResponse_Read(w wire.Value) (*BarResponse, error) { // An error is returned if we were unable to build a BarResponse struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarResponse -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarResponse) FromWire(w wire.Value) error { var err error @@ -1994,14 +1994,14 @@ func (_List_String_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarResponseRecur) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -2052,16 +2052,16 @@ func _List_String_Read(l wire.ValueList) ([]string, error) { // An error is returned if we were unable to build a BarResponseRecur struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarResponseRecur -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarResponseRecur +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarResponseRecur) FromWire(w wire.Value) error { var err error @@ -2358,8 +2358,8 @@ func DemoType_Values() []DemoType { // UnmarshalText tries to decode DemoType from a byte slice // containing its name. // -// var v DemoType -// err := v.UnmarshalText([]byte("FIRST")) +// var v DemoType +// err := v.UnmarshalText([]byte("FIRST")) func (v *DemoType) UnmarshalText(value []byte) error { switch s := string(value); s { case "FIRST": @@ -2416,10 +2416,10 @@ func (v DemoType) Ptr() *DemoType { // Encode encodes DemoType directly to bytes. // -// sWriter := BinaryStreamer.Writer(writer) +// sWriter := BinaryStreamer.Writer(writer) // -// var v DemoType -// return v.Encode(sWriter) +// var v DemoType +// return v.Encode(sWriter) func (v DemoType) Encode(sw stream.Writer) error { return sw.WriteInt32(int32(v)) } @@ -2436,16 +2436,16 @@ func (v DemoType) ToWire() (wire.Value, error) { // FromWire deserializes DemoType from its Thrift-level // representation. // -// x, err := binaryProtocol.Decode(reader, wire.TI32) -// if err != nil { -// return DemoType(0), err -// } +// x, err := binaryProtocol.Decode(reader, wire.TI32) +// if err != nil { +// return DemoType(0), err +// } // -// var v DemoType -// if err := v.FromWire(x); err != nil { -// return DemoType(0), err -// } -// return v, nil +// var v DemoType +// if err := v.FromWire(x); err != nil { +// return DemoType(0), err +// } +// return v, nil func (v *DemoType) FromWire(w wire.Value) error { *v = (DemoType)(w.GetI32()) return nil @@ -2453,13 +2453,13 @@ func (v *DemoType) FromWire(w wire.Value) error { // Decode reads off the encoded DemoType directly off of the wire. // -// sReader := BinaryStreamer.Reader(reader) +// sReader := BinaryStreamer.Reader(reader) // -// var v DemoType -// if err := v.Decode(sReader); err != nil { -// return DemoType(0), err -// } -// return v, nil +// var v DemoType +// if err := v.Decode(sReader); err != nil { +// return DemoType(0), err +// } +// return v, nil func (v *DemoType) Decode(sr stream.Reader) error { i, err := sr.ReadInt32() if err != nil { @@ -2557,8 +2557,8 @@ func Fruit_Values() []Fruit { // UnmarshalText tries to decode Fruit from a byte slice // containing its name. // -// var v Fruit -// err := v.UnmarshalText([]byte("APPLE")) +// var v Fruit +// err := v.UnmarshalText([]byte("APPLE")) func (v *Fruit) UnmarshalText(value []byte) error { switch s := string(value); s { case "APPLE": @@ -2615,10 +2615,10 @@ func (v Fruit) Ptr() *Fruit { // Encode encodes Fruit directly to bytes. // -// sWriter := BinaryStreamer.Writer(writer) +// sWriter := BinaryStreamer.Writer(writer) // -// var v Fruit -// return v.Encode(sWriter) +// var v Fruit +// return v.Encode(sWriter) func (v Fruit) Encode(sw stream.Writer) error { return sw.WriteInt32(int32(v)) } @@ -2635,16 +2635,16 @@ func (v Fruit) ToWire() (wire.Value, error) { // FromWire deserializes Fruit from its Thrift-level // representation. // -// x, err := binaryProtocol.Decode(reader, wire.TI32) -// if err != nil { -// return Fruit(0), err -// } +// x, err := binaryProtocol.Decode(reader, wire.TI32) +// if err != nil { +// return Fruit(0), err +// } // -// var v Fruit -// if err := v.FromWire(x); err != nil { -// return Fruit(0), err -// } -// return v, nil +// var v Fruit +// if err := v.FromWire(x); err != nil { +// return Fruit(0), err +// } +// return v, nil func (v *Fruit) FromWire(w wire.Value) error { *v = (Fruit)(w.GetI32()) return nil @@ -2652,13 +2652,13 @@ func (v *Fruit) FromWire(w wire.Value) error { // Decode reads off the encoded Fruit directly off of the wire. // -// sReader := BinaryStreamer.Reader(reader) +// sReader := BinaryStreamer.Reader(reader) // -// var v Fruit -// if err := v.Decode(sReader); err != nil { -// return Fruit(0), err -// } -// return v, nil +// var v Fruit +// if err := v.Decode(sReader); err != nil { +// return Fruit(0), err +// } +// return v, nil func (v *Fruit) Decode(sr stream.Reader) error { i, err := sr.ReadInt32() if err != nil { @@ -2797,14 +2797,14 @@ type OptionalParamsStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *OptionalParamsStruct) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -2832,16 +2832,16 @@ func (v *OptionalParamsStruct) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a OptionalParamsStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v OptionalParamsStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v OptionalParamsStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *OptionalParamsStruct) FromWire(w wire.Value) error { var err error @@ -3017,14 +3017,14 @@ type ParamsStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ParamsStruct) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -3050,16 +3050,16 @@ func (v *ParamsStruct) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ParamsStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ParamsStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ParamsStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ParamsStruct) FromWire(w wire.Value) error { var err error @@ -3224,14 +3224,14 @@ type QueryParamsOptsStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *QueryParamsOptsStruct) ToWire() (wire.Value, error) { var ( fields [4]wire.Field @@ -3281,16 +3281,16 @@ func (v *QueryParamsOptsStruct) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a QueryParamsOptsStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v QueryParamsOptsStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v QueryParamsOptsStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *QueryParamsOptsStruct) FromWire(w wire.Value) error { var err error @@ -3621,14 +3621,14 @@ type QueryParamsStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *QueryParamsStruct) ToWire() (wire.Value, error) { var ( fields [5]wire.Field @@ -3685,16 +3685,16 @@ func (v *QueryParamsStruct) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a QueryParamsStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v QueryParamsStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v QueryParamsStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *QueryParamsStruct) FromWire(w wire.Value) error { var err error @@ -4078,14 +4078,14 @@ type RequestWithDuplicateType struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *RequestWithDuplicateType) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -4127,16 +4127,16 @@ func _BarRequest_Read(w wire.Value) (*BarRequest, error) { // An error is returned if we were unable to build a RequestWithDuplicateType struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v RequestWithDuplicateType -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v RequestWithDuplicateType +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *RequestWithDuplicateType) FromWire(w wire.Value) error { var err error @@ -4354,14 +4354,14 @@ type SeeOthersRedirection struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SeeOthersRedirection) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -4378,16 +4378,16 @@ func (v *SeeOthersRedirection) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SeeOthersRedirection struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SeeOthersRedirection -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SeeOthersRedirection +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SeeOthersRedirection) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -4818,14 +4818,14 @@ type Bar_ArgNotStruct_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgNotStruct_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -4851,16 +4851,16 @@ func (v *Bar_ArgNotStruct_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgNotStruct_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgNotStruct_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgNotStruct_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgNotStruct_Args) FromWire(w wire.Value) error { var err error @@ -5129,14 +5129,14 @@ type Bar_ArgNotStruct_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgNotStruct_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -5174,16 +5174,16 @@ func _BarException_Read(w wire.Value) (*BarException, error) { // An error is returned if we were unable to build a Bar_ArgNotStruct_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgNotStruct_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgNotStruct_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgNotStruct_Result) FromWire(w wire.Value) error { var err error @@ -5396,14 +5396,14 @@ type Bar_ArgWithHeaders_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithHeaders_Args) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -5451,16 +5451,16 @@ func _OptionalParamsStruct_Read(w wire.Value) (*OptionalParamsStruct, error) { // An error is returned if we were unable to build a Bar_ArgWithHeaders_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithHeaders_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithHeaders_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithHeaders_Args) FromWire(w wire.Value) error { var err error @@ -5842,14 +5842,14 @@ type Bar_ArgWithHeaders_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithHeaders_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -5881,16 +5881,16 @@ func (v *Bar_ArgWithHeaders_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithHeaders_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithHeaders_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithHeaders_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithHeaders_Result) FromWire(w wire.Value) error { var err error @@ -6174,14 +6174,14 @@ func (_List_DemoType_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithManyQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [28]wire.Field @@ -6464,16 +6464,16 @@ func _List_DemoType_Read(l wire.ValueList) ([]DemoType, error) { // An error is returned if we were unable to build a Bar_ArgWithManyQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithManyQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithManyQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithManyQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -8511,14 +8511,14 @@ type Bar_ArgWithManyQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithManyQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -8550,16 +8550,16 @@ func (v *Bar_ArgWithManyQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithManyQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithManyQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithManyQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithManyQueryParams_Result) FromWire(w wire.Value) error { var err error @@ -8767,14 +8767,14 @@ type Bar_ArgWithNearDupQueryParams_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithNearDupQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [4]wire.Field @@ -8824,16 +8824,16 @@ func (v *Bar_ArgWithNearDupQueryParams_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithNearDupQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithNearDupQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithNearDupQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithNearDupQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -9271,14 +9271,14 @@ type Bar_ArgWithNearDupQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithNearDupQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -9310,16 +9310,16 @@ func (v *Bar_ArgWithNearDupQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithNearDupQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithNearDupQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithNearDupQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithNearDupQueryParams_Result) FromWire(w wire.Value) error { var err error @@ -9525,14 +9525,14 @@ type Bar_ArgWithNestedQueryParams_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithNestedQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -9581,16 +9581,16 @@ func _QueryParamsOptsStruct_Read(w wire.Value) (*QueryParamsOptsStruct, error) { // An error is returned if we were unable to build a Bar_ArgWithNestedQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithNestedQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithNestedQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithNestedQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -9928,14 +9928,14 @@ type Bar_ArgWithNestedQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithNestedQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -9967,16 +9967,16 @@ func (v *Bar_ArgWithNestedQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithNestedQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithNestedQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithNestedQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithNestedQueryParams_Result) FromWire(w wire.Value) error { var err error @@ -10182,14 +10182,14 @@ type Bar_ArgWithParams_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithParams_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -10229,16 +10229,16 @@ func _ParamsStruct_Read(w wire.Value) (*ParamsStruct, error) { // An error is returned if we were unable to build a Bar_ArgWithParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithParams_Args) FromWire(w wire.Value) error { var err error @@ -10562,14 +10562,14 @@ type Bar_ArgWithParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -10601,16 +10601,16 @@ func (v *Bar_ArgWithParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithParams_Result) FromWire(w wire.Value) error { var err error @@ -10816,14 +10816,14 @@ type Bar_ArgWithParamsAndDuplicateFields_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithParamsAndDuplicateFields_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -10865,16 +10865,16 @@ func _RequestWithDuplicateType_Read(w wire.Value) (*RequestWithDuplicateType, er // An error is returned if we were unable to build a Bar_ArgWithParamsAndDuplicateFields_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithParamsAndDuplicateFields_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithParamsAndDuplicateFields_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithParamsAndDuplicateFields_Args) FromWire(w wire.Value) error { var err error @@ -11204,14 +11204,14 @@ type Bar_ArgWithParamsAndDuplicateFields_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithParamsAndDuplicateFields_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -11243,16 +11243,16 @@ func (v *Bar_ArgWithParamsAndDuplicateFields_Result) ToWire() (wire.Value, error // An error is returned if we were unable to build a Bar_ArgWithParamsAndDuplicateFields_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithParamsAndDuplicateFields_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithParamsAndDuplicateFields_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithParamsAndDuplicateFields_Result) FromWire(w wire.Value) error { var err error @@ -11457,14 +11457,14 @@ type Bar_ArgWithQueryHeader_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithQueryHeader_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -11492,16 +11492,16 @@ func (v *Bar_ArgWithQueryHeader_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithQueryHeader_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithQueryHeader_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithQueryHeader_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithQueryHeader_Args) FromWire(w wire.Value) error { var err error @@ -11769,14 +11769,14 @@ type Bar_ArgWithQueryHeader_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithQueryHeader_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -11808,16 +11808,16 @@ func (v *Bar_ArgWithQueryHeader_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithQueryHeader_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithQueryHeader_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithQueryHeader_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithQueryHeader_Result) FromWire(w wire.Value) error { var err error @@ -12051,14 +12051,14 @@ func (_List_Byte_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [4]wire.Field @@ -12125,16 +12125,16 @@ func _List_Byte_Read(l wire.ValueList) ([]int8, error) { // An error is returned if we were unable to build a Bar_ArgWithQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -12643,14 +12643,14 @@ type Bar_ArgWithQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -12682,16 +12682,16 @@ func (v *Bar_ArgWithQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithQueryParams_Result) FromWire(w wire.Value) error { var err error @@ -12896,14 +12896,14 @@ type Bar_DeleteFoo_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteFoo_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -12929,16 +12929,16 @@ func (v *Bar_DeleteFoo_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteFoo_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteFoo_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteFoo_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteFoo_Args) FromWire(w wire.Value) error { var err error @@ -13192,14 +13192,14 @@ type Bar_DeleteFoo_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteFoo_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -13216,16 +13216,16 @@ func (v *Bar_DeleteFoo_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteFoo_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteFoo_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteFoo_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteFoo_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -13354,14 +13354,14 @@ type Bar_DeleteWithBody_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteWithBody_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -13395,16 +13395,16 @@ func (v *Bar_DeleteWithBody_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteWithBody_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteWithBody_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteWithBody_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteWithBody_Args) FromWire(w wire.Value) error { var err error @@ -13716,14 +13716,14 @@ type Bar_DeleteWithBody_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteWithBody_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -13740,16 +13740,16 @@ func (v *Bar_DeleteWithBody_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteWithBody_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteWithBody_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteWithBody_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteWithBody_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -13878,14 +13878,14 @@ type Bar_DeleteWithQueryParams_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteWithQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -13919,16 +13919,16 @@ func (v *Bar_DeleteWithQueryParams_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteWithQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteWithQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteWithQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteWithQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -14240,14 +14240,14 @@ type Bar_DeleteWithQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteWithQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -14264,16 +14264,16 @@ func (v *Bar_DeleteWithQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteWithQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteWithQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteWithQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteWithQueryParams_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -14400,14 +14400,14 @@ type Bar_HelloWorld_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_HelloWorld_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -14424,16 +14424,16 @@ func (v *Bar_HelloWorld_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_HelloWorld_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_HelloWorld_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_HelloWorld_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_HelloWorld_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -14666,14 +14666,14 @@ type Bar_HelloWorld_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_HelloWorld_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -14727,16 +14727,16 @@ func _SeeOthersRedirection_Read(w wire.Value) (*SeeOthersRedirection, error) { // An error is returned if we were unable to build a Bar_HelloWorld_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_HelloWorld_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_HelloWorld_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_HelloWorld_Result) FromWire(w wire.Value) error { var err error @@ -15073,14 +15073,14 @@ type Bar_ListAndEnum_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ListAndEnum_Args) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -15122,16 +15122,16 @@ func (v *Bar_ListAndEnum_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ListAndEnum_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ListAndEnum_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ListAndEnum_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ListAndEnum_Args) FromWire(w wire.Value) error { var err error @@ -15537,14 +15537,14 @@ type Bar_ListAndEnum_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ListAndEnum_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -15584,16 +15584,16 @@ func (v *Bar_ListAndEnum_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ListAndEnum_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ListAndEnum_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ListAndEnum_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ListAndEnum_Result) FromWire(w wire.Value) error { var err error @@ -15861,14 +15861,14 @@ type Bar_MissingArg_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_MissingArg_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -15885,16 +15885,16 @@ func (v *Bar_MissingArg_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_MissingArg_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_MissingArg_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_MissingArg_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_MissingArg_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -16115,14 +16115,14 @@ type Bar_MissingArg_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_MissingArg_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -16162,16 +16162,16 @@ func (v *Bar_MissingArg_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_MissingArg_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_MissingArg_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_MissingArg_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_MissingArg_Result) FromWire(w wire.Value) error { var err error @@ -16435,14 +16435,14 @@ type Bar_NoRequest_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_NoRequest_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -16459,16 +16459,16 @@ func (v *Bar_NoRequest_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_NoRequest_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_NoRequest_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_NoRequest_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_NoRequest_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -16689,14 +16689,14 @@ type Bar_NoRequest_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_NoRequest_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -16736,16 +16736,16 @@ func (v *Bar_NoRequest_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_NoRequest_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_NoRequest_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_NoRequest_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_NoRequest_Result) FromWire(w wire.Value) error { var err error @@ -17010,14 +17010,14 @@ type Bar_Normal_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_Normal_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -17046,16 +17046,16 @@ func (v *Bar_Normal_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_Normal_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_Normal_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_Normal_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_Normal_Args) FromWire(w wire.Value) error { var err error @@ -17342,14 +17342,14 @@ type Bar_Normal_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_Normal_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -17389,16 +17389,16 @@ func (v *Bar_Normal_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_Normal_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_Normal_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_Normal_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_Normal_Result) FromWire(w wire.Value) error { var err error @@ -17663,14 +17663,14 @@ type Bar_NormalRecur_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_NormalRecur_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -17699,16 +17699,16 @@ func (v *Bar_NormalRecur_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_NormalRecur_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_NormalRecur_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_NormalRecur_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_NormalRecur_Args) FromWire(w wire.Value) error { var err error @@ -17995,14 +17995,14 @@ type Bar_NormalRecur_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_NormalRecur_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -18048,16 +18048,16 @@ func _BarResponseRecur_Read(w wire.Value) (*BarResponseRecur, error) { // An error is returned if we were unable to build a Bar_NormalRecur_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_NormalRecur_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_NormalRecur_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_NormalRecur_Result) FromWire(w wire.Value) error { var err error @@ -18329,14 +18329,14 @@ type Bar_TooManyArgs_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_TooManyArgs_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -18379,16 +18379,16 @@ func _FooStruct_Read(w wire.Value) (*foo.FooStruct, error) { // An error is returned if we were unable to build a Bar_TooManyArgs_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_TooManyArgs_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_TooManyArgs_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_TooManyArgs_Args) FromWire(w wire.Value) error { var err error @@ -18747,14 +18747,14 @@ type Bar_TooManyArgs_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_TooManyArgs_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -18808,16 +18808,16 @@ func _FooException_Read(w wire.Value) (*foo.FooException, error) { // An error is returned if we were unable to build a Bar_TooManyArgs_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_TooManyArgs_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_TooManyArgs_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_TooManyArgs_Result) FromWire(w wire.Value) error { var err error @@ -19148,14 +19148,14 @@ type Echo_EchoBinary_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoBinary_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -19184,16 +19184,16 @@ func (v *Echo_EchoBinary_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoBinary_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoBinary_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoBinary_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoBinary_Args) FromWire(w wire.Value) error { var err error @@ -19465,14 +19465,14 @@ type Echo_EchoBinary_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoBinary_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -19504,16 +19504,16 @@ func (v *Echo_EchoBinary_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoBinary_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoBinary_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoBinary_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoBinary_Result) FromWire(w wire.Value) error { var err error @@ -19718,14 +19718,14 @@ type Echo_EchoBool_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoBool_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -19751,16 +19751,16 @@ func (v *Echo_EchoBool_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoBool_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoBool_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoBool_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoBool_Args) FromWire(w wire.Value) error { var err error @@ -20024,14 +20024,14 @@ type Echo_EchoBool_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoBool_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -20063,16 +20063,16 @@ func (v *Echo_EchoBool_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoBool_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoBool_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoBool_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoBool_Result) FromWire(w wire.Value) error { var err error @@ -20281,14 +20281,14 @@ type Echo_EchoDouble_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoDouble_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -20314,16 +20314,16 @@ func (v *Echo_EchoDouble_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoDouble_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoDouble_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoDouble_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoDouble_Args) FromWire(w wire.Value) error { var err error @@ -20587,14 +20587,14 @@ type Echo_EchoDouble_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoDouble_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -20626,16 +20626,16 @@ func (v *Echo_EchoDouble_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoDouble_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoDouble_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoDouble_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoDouble_Result) FromWire(w wire.Value) error { var err error @@ -20856,14 +20856,14 @@ func Default_Echo_EchoEnum_Args() *Echo_EchoEnum_Args { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoEnum_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -20895,16 +20895,16 @@ func (v *Echo_EchoEnum_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoEnum_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoEnum_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoEnum_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoEnum_Args) FromWire(w wire.Value) error { var err error @@ -21184,14 +21184,14 @@ type Echo_EchoEnum_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoEnum_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -21223,16 +21223,16 @@ func (v *Echo_EchoEnum_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoEnum_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoEnum_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoEnum_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoEnum_Result) FromWire(w wire.Value) error { var err error @@ -21441,14 +21441,14 @@ type Echo_EchoI16_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI16_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -21474,16 +21474,16 @@ func (v *Echo_EchoI16_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI16_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI16_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI16_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI16_Args) FromWire(w wire.Value) error { var err error @@ -21747,14 +21747,14 @@ type Echo_EchoI16_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI16_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -21786,16 +21786,16 @@ func (v *Echo_EchoI16_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI16_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI16_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI16_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI16_Result) FromWire(w wire.Value) error { var err error @@ -22004,14 +22004,14 @@ type Echo_EchoI32_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI32_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -22037,16 +22037,16 @@ func (v *Echo_EchoI32_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI32_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI32_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI32_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI32_Args) FromWire(w wire.Value) error { var err error @@ -22310,14 +22310,14 @@ type Echo_EchoI32_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI32_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -22349,16 +22349,16 @@ func (v *Echo_EchoI32_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI32_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI32_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI32_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI32_Result) FromWire(w wire.Value) error { var err error @@ -22605,14 +22605,14 @@ func (_Map_I32_BarResponse_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI32Map_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -22669,16 +22669,16 @@ func _Map_I32_BarResponse_Read(m wire.MapItemList) (map[int32]*BarResponse, erro // An error is returned if we were unable to build a Echo_EchoI32Map_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI32Map_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI32Map_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI32Map_Args) FromWire(w wire.Value) error { var err error @@ -23057,14 +23057,14 @@ type Echo_EchoI32Map_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI32Map_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -23096,16 +23096,16 @@ func (v *Echo_EchoI32Map_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI32Map_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI32Map_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI32Map_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI32Map_Result) FromWire(w wire.Value) error { var err error @@ -23310,14 +23310,14 @@ type Echo_EchoI64_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI64_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -23343,16 +23343,16 @@ func (v *Echo_EchoI64_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI64_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI64_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI64_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI64_Args) FromWire(w wire.Value) error { var err error @@ -23616,14 +23616,14 @@ type Echo_EchoI64_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI64_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -23655,16 +23655,16 @@ func (v *Echo_EchoI64_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI64_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI64_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI64_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI64_Result) FromWire(w wire.Value) error { var err error @@ -23873,14 +23873,14 @@ type Echo_EchoI8_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI8_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -23906,16 +23906,16 @@ func (v *Echo_EchoI8_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI8_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI8_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI8_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI8_Args) FromWire(w wire.Value) error { var err error @@ -24179,14 +24179,14 @@ type Echo_EchoI8_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI8_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -24218,16 +24218,16 @@ func (v *Echo_EchoI8_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI8_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI8_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI8_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI8_Result) FromWire(w wire.Value) error { var err error @@ -24436,14 +24436,14 @@ type Echo_EchoString_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoString_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -24469,16 +24469,16 @@ func (v *Echo_EchoString_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoString_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoString_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoString_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoString_Args) FromWire(w wire.Value) error { var err error @@ -24742,14 +24742,14 @@ type Echo_EchoString_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoString_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -24781,16 +24781,16 @@ func (v *Echo_EchoString_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoString_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoString_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoString_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoString_Result) FromWire(w wire.Value) error { var err error @@ -24999,14 +24999,14 @@ type Echo_EchoStringList_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStringList_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -25032,16 +25032,16 @@ func (v *Echo_EchoStringList_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStringList_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStringList_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStringList_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStringList_Args) FromWire(w wire.Value) error { var err error @@ -25310,14 +25310,14 @@ type Echo_EchoStringList_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStringList_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -25349,16 +25349,16 @@ func (v *Echo_EchoStringList_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStringList_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStringList_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStringList_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStringList_Result) FromWire(w wire.Value) error { var err error @@ -25601,14 +25601,14 @@ func (_Map_String_BarResponse_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStringMap_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -25665,16 +25665,16 @@ func _Map_String_BarResponse_Read(m wire.MapItemList) (map[string]*BarResponse, // An error is returned if we were unable to build a Echo_EchoStringMap_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStringMap_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStringMap_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStringMap_Args) FromWire(w wire.Value) error { var err error @@ -26040,14 +26040,14 @@ type Echo_EchoStringMap_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStringMap_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -26079,16 +26079,16 @@ func (v *Echo_EchoStringMap_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStringMap_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStringMap_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStringMap_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStringMap_Result) FromWire(w wire.Value) error { var err error @@ -26319,14 +26319,14 @@ func (_Set_String_mapType_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStringSet_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -26374,16 +26374,16 @@ func _Set_String_mapType_Read(s wire.ValueList) (map[string]struct{}, error) { // An error is returned if we were unable to build a Echo_EchoStringSet_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStringSet_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStringSet_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStringSet_Args) FromWire(w wire.Value) error { var err error @@ -26731,14 +26731,14 @@ type Echo_EchoStringSet_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStringSet_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -26770,16 +26770,16 @@ func (v *Echo_EchoStringSet_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStringSet_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStringSet_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStringSet_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStringSet_Result) FromWire(w wire.Value) error { var err error @@ -27013,14 +27013,14 @@ func (_List_BarResponse_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStructList_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -27064,16 +27064,16 @@ func _List_BarResponse_Read(l wire.ValueList) ([]*BarResponse, error) { // An error is returned if we were unable to build a Echo_EchoStructList_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStructList_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStructList_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStructList_Args) FromWire(w wire.Value) error { var err error @@ -27419,14 +27419,14 @@ type Echo_EchoStructList_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStructList_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -27458,16 +27458,16 @@ func (v *Echo_EchoStructList_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStructList_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStructList_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStructList_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStructList_Result) FromWire(w wire.Value) error { var err error @@ -27718,14 +27718,14 @@ func (_Map_BarResponse_String_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStructMap_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -27791,16 +27791,16 @@ func _Map_BarResponse_String_Read(m wire.MapItemList) ([]struct { // An error is returned if we were unable to build a Echo_EchoStructMap_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStructMap_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStructMap_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStructMap_Args) FromWire(w wire.Value) error { var err error @@ -28237,14 +28237,14 @@ type Echo_EchoStructMap_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStructMap_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -28276,16 +28276,16 @@ func (v *Echo_EchoStructMap_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStructMap_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStructMap_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStructMap_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStructMap_Result) FromWire(w wire.Value) error { var err error @@ -28522,14 +28522,14 @@ func (_Set_BarResponse_sliceType_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStructSet_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -28577,16 +28577,16 @@ func _Set_BarResponse_sliceType_Read(s wire.ValueList) ([]*BarResponse, error) { // An error is returned if we were unable to build a Echo_EchoStructSet_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStructSet_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStructSet_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStructSet_Args) FromWire(w wire.Value) error { var err error @@ -28944,14 +28944,14 @@ type Echo_EchoStructSet_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStructSet_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -28983,16 +28983,16 @@ func (v *Echo_EchoStructSet_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStructSet_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStructSet_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStructSet_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStructSet_Result) FromWire(w wire.Value) error { var err error @@ -29197,14 +29197,14 @@ type Echo_EchoTypedef_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoTypedef_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -29230,16 +29230,16 @@ func (v *Echo_EchoTypedef_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoTypedef_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoTypedef_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoTypedef_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoTypedef_Args) FromWire(w wire.Value) error { var err error @@ -29503,14 +29503,14 @@ type Echo_EchoTypedef_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoTypedef_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -29542,16 +29542,16 @@ func (v *Echo_EchoTypedef_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoTypedef_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoTypedef_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoTypedef_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoTypedef_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/clients-idl/clients/baz/base/base.go b/examples/example-gateway/build/gen-code/clients-idl/clients/baz/base/base.go index 595c9d0ab..b1bf4460d 100644 --- a/examples/example-gateway/build/gen-code/clients-idl/clients/baz/base/base.go +++ b/examples/example-gateway/build/gen-code/clients-idl/clients/baz/base/base.go @@ -25,14 +25,14 @@ type BazResponse struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BazResponse) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -58,16 +58,16 @@ func (v *BazResponse) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a BazResponse struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BazResponse -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BazResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BazResponse) FromWire(w wire.Value) error { var err error @@ -230,14 +230,14 @@ type NestHeaders struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *NestHeaders) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -271,16 +271,16 @@ func (v *NestHeaders) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a NestHeaders struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v NestHeaders -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v NestHeaders +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *NestHeaders) FromWire(w wire.Value) error { var err error @@ -508,14 +508,14 @@ type NestedStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *NestedStruct) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -549,16 +549,16 @@ func (v *NestedStruct) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a NestedStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v NestedStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v NestedStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *NestedStruct) FromWire(w wire.Value) error { var err error @@ -785,14 +785,14 @@ type ServerErr struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServerErr) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -818,16 +818,16 @@ func (v *ServerErr) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServerErr struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServerErr -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServerErr +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServerErr) FromWire(w wire.Value) error { var err error @@ -1000,14 +1000,14 @@ type TransHeaders struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *TransHeaders) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -1050,16 +1050,16 @@ func _Wrapped_Read(w wire.Value) (*Wrapped, error) { // An error is returned if we were unable to build a TransHeaders struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v TransHeaders -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v TransHeaders +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *TransHeaders) FromWire(w wire.Value) error { var err error @@ -1288,14 +1288,14 @@ type TransStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *TransStruct) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -1344,16 +1344,16 @@ func _NestedStruct_Read(w wire.Value) (*NestedStruct, error) { // An error is returned if we were unable to build a TransStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v TransStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v TransStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *TransStruct) FromWire(w wire.Value) error { var err error @@ -1680,14 +1680,14 @@ type Wrapped struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Wrapped) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -1730,16 +1730,16 @@ func _NestHeaders_Read(w wire.Value) (*NestHeaders, error) { // An error is returned if we were unable to build a Wrapped struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Wrapped -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Wrapped +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Wrapped) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/clients-idl/clients/baz/baz/baz.go b/examples/example-gateway/build/gen-code/clients-idl/clients/baz/baz/baz.go index 60df83835..a8c591721 100644 --- a/examples/example-gateway/build/gen-code/clients-idl/clients/baz/baz/baz.go +++ b/examples/example-gateway/build/gen-code/clients-idl/clients/baz/baz/baz.go @@ -31,14 +31,14 @@ type AuthErr struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *AuthErr) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -64,16 +64,16 @@ func (v *AuthErr) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a AuthErr struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v AuthErr -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v AuthErr +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *AuthErr) FromWire(w wire.Value) error { var err error @@ -247,14 +247,14 @@ type BazRequest struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BazRequest) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -294,16 +294,16 @@ func (v *BazRequest) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a BazRequest struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BazRequest -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BazRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BazRequest) FromWire(w wire.Value) error { var err error @@ -570,8 +570,8 @@ func Fruit_Values() []Fruit { // UnmarshalText tries to decode Fruit from a byte slice // containing its name. // -// var v Fruit -// err := v.UnmarshalText([]byte("APPLE")) +// var v Fruit +// err := v.UnmarshalText([]byte("APPLE")) func (v *Fruit) UnmarshalText(value []byte) error { switch s := string(value); s { case "APPLE": @@ -628,10 +628,10 @@ func (v Fruit) Ptr() *Fruit { // Encode encodes Fruit directly to bytes. // -// sWriter := BinaryStreamer.Writer(writer) +// sWriter := BinaryStreamer.Writer(writer) // -// var v Fruit -// return v.Encode(sWriter) +// var v Fruit +// return v.Encode(sWriter) func (v Fruit) Encode(sw stream.Writer) error { return sw.WriteInt32(int32(v)) } @@ -648,16 +648,16 @@ func (v Fruit) ToWire() (wire.Value, error) { // FromWire deserializes Fruit from its Thrift-level // representation. // -// x, err := binaryProtocol.Decode(reader, wire.TI32) -// if err != nil { -// return Fruit(0), err -// } +// x, err := binaryProtocol.Decode(reader, wire.TI32) +// if err != nil { +// return Fruit(0), err +// } // -// var v Fruit -// if err := v.FromWire(x); err != nil { -// return Fruit(0), err -// } -// return v, nil +// var v Fruit +// if err := v.FromWire(x); err != nil { +// return Fruit(0), err +// } +// return v, nil func (v *Fruit) FromWire(w wire.Value) error { *v = (Fruit)(w.GetI32()) return nil @@ -665,13 +665,13 @@ func (v *Fruit) FromWire(w wire.Value) error { // Decode reads off the encoded Fruit directly off of the wire. // -// sReader := BinaryStreamer.Reader(reader) +// sReader := BinaryStreamer.Reader(reader) // -// var v Fruit -// if err := v.Decode(sReader); err != nil { -// return Fruit(0), err -// } -// return v, nil +// var v Fruit +// if err := v.Decode(sReader); err != nil { +// return Fruit(0), err +// } +// return v, nil func (v *Fruit) Decode(sr stream.Reader) error { i, err := sr.ReadInt32() if err != nil { @@ -762,14 +762,14 @@ type GetProfileRequest struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *GetProfileRequest) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -801,16 +801,16 @@ func _UUID_Read(w wire.Value) (UUID, error) { // An error is returned if we were unable to build a GetProfileRequest struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v GetProfileRequest -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v GetProfileRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *GetProfileRequest) FromWire(w wire.Value) error { var err error @@ -1007,14 +1007,14 @@ func (_List_Profile_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *GetProfileResponse) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1064,16 +1064,16 @@ func _List_Profile_Read(l wire.ValueList) ([]*Profile, error) { // An error is returned if we were unable to build a GetProfileResponse struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v GetProfileResponse -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v GetProfileResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *GetProfileResponse) FromWire(w wire.Value) error { var err error @@ -1322,14 +1322,14 @@ type HeaderSchema struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *HeaderSchema) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -1346,16 +1346,16 @@ func (v *HeaderSchema) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a HeaderSchema struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v HeaderSchema -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v HeaderSchema +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *HeaderSchema) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -1465,14 +1465,14 @@ type OtherAuthErr struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *OtherAuthErr) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1498,16 +1498,16 @@ func (v *OtherAuthErr) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a OtherAuthErr struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v OtherAuthErr -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v OtherAuthErr +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *OtherAuthErr) FromWire(w wire.Value) error { var err error @@ -1679,14 +1679,14 @@ type Profile struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Profile) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1721,16 +1721,16 @@ func _Recur1_Read(w wire.Value) (*Recur1, error) { // An error is returned if we were unable to build a Profile struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Profile -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Profile +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Profile) FromWire(w wire.Value) error { var err error @@ -1944,14 +1944,14 @@ func (_Map_UUID_Recur2_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Recur1) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -2014,16 +2014,16 @@ func _Map_UUID_Recur2_Read(m wire.MapItemList) (map[UUID]*Recur2, error) { // An error is returned if we were unable to build a Recur1 struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Recur1 -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Recur1 +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Recur1) FromWire(w wire.Value) error { var err error @@ -2294,14 +2294,14 @@ type Recur2 struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Recur2) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -2344,16 +2344,16 @@ func _Recur3_Read(w wire.Value) (*Recur3, error) { // An error is returned if we were unable to build a Recur2 struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Recur2 -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Recur2 +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Recur2) FromWire(w wire.Value) error { var err error @@ -2580,14 +2580,14 @@ type Recur3 struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Recur3) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -2613,16 +2613,16 @@ func (v *Recur3) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Recur3 struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Recur3 -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Recur3 +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Recur3) FromWire(w wire.Value) error { var err error @@ -2838,14 +2838,14 @@ type TransHeaderType struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *TransHeaderType) ToWire() (wire.Value, error) { var ( fields [7]wire.Field @@ -2916,16 +2916,16 @@ func (v *TransHeaderType) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a TransHeaderType struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v TransHeaderType -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v TransHeaderType +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *TransHeaderType) FromWire(w wire.Value) error { var err error @@ -3438,14 +3438,14 @@ type SecondService_EchoBinary_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoBinary_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -3474,16 +3474,16 @@ func (v *SecondService_EchoBinary_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoBinary_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoBinary_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoBinary_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoBinary_Args) FromWire(w wire.Value) error { var err error @@ -3755,14 +3755,14 @@ type SecondService_EchoBinary_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoBinary_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -3794,16 +3794,16 @@ func (v *SecondService_EchoBinary_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoBinary_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoBinary_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoBinary_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoBinary_Result) FromWire(w wire.Value) error { var err error @@ -4008,14 +4008,14 @@ type SecondService_EchoBool_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoBool_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -4041,16 +4041,16 @@ func (v *SecondService_EchoBool_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoBool_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoBool_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoBool_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoBool_Args) FromWire(w wire.Value) error { var err error @@ -4314,14 +4314,14 @@ type SecondService_EchoBool_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoBool_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -4353,16 +4353,16 @@ func (v *SecondService_EchoBool_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoBool_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoBool_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoBool_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoBool_Result) FromWire(w wire.Value) error { var err error @@ -4581,14 +4581,14 @@ type SecondService_EchoDouble_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoDouble_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -4614,16 +4614,16 @@ func (v *SecondService_EchoDouble_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoDouble_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoDouble_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoDouble_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoDouble_Args) FromWire(w wire.Value) error { var err error @@ -4887,14 +4887,14 @@ type SecondService_EchoDouble_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoDouble_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -4926,16 +4926,16 @@ func (v *SecondService_EchoDouble_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoDouble_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoDouble_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoDouble_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoDouble_Result) FromWire(w wire.Value) error { var err error @@ -5156,14 +5156,14 @@ func Default_SecondService_EchoEnum_Args() *SecondService_EchoEnum_Args { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoEnum_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -5201,16 +5201,16 @@ func _Fruit_Read(w wire.Value) (Fruit, error) { // An error is returned if we were unable to build a SecondService_EchoEnum_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoEnum_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoEnum_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoEnum_Args) FromWire(w wire.Value) error { var err error @@ -5506,14 +5506,14 @@ type SecondService_EchoEnum_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoEnum_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -5545,16 +5545,16 @@ func (v *SecondService_EchoEnum_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoEnum_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoEnum_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoEnum_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoEnum_Result) FromWire(w wire.Value) error { var err error @@ -5763,14 +5763,14 @@ type SecondService_EchoI16_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoI16_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -5796,16 +5796,16 @@ func (v *SecondService_EchoI16_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoI16_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoI16_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoI16_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoI16_Args) FromWire(w wire.Value) error { var err error @@ -6069,14 +6069,14 @@ type SecondService_EchoI16_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoI16_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -6108,16 +6108,16 @@ func (v *SecondService_EchoI16_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoI16_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoI16_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoI16_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoI16_Result) FromWire(w wire.Value) error { var err error @@ -6336,14 +6336,14 @@ type SecondService_EchoI32_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoI32_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -6369,16 +6369,16 @@ func (v *SecondService_EchoI32_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoI32_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoI32_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoI32_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoI32_Args) FromWire(w wire.Value) error { var err error @@ -6642,14 +6642,14 @@ type SecondService_EchoI32_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoI32_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -6681,16 +6681,16 @@ func (v *SecondService_EchoI32_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoI32_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoI32_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoI32_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoI32_Result) FromWire(w wire.Value) error { var err error @@ -6899,14 +6899,14 @@ type SecondService_EchoI64_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoI64_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -6932,16 +6932,16 @@ func (v *SecondService_EchoI64_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoI64_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoI64_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoI64_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoI64_Args) FromWire(w wire.Value) error { var err error @@ -7205,14 +7205,14 @@ type SecondService_EchoI64_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoI64_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -7244,16 +7244,16 @@ func (v *SecondService_EchoI64_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoI64_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoI64_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoI64_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoI64_Result) FromWire(w wire.Value) error { var err error @@ -7472,14 +7472,14 @@ type SecondService_EchoI8_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoI8_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -7505,16 +7505,16 @@ func (v *SecondService_EchoI8_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoI8_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoI8_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoI8_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoI8_Args) FromWire(w wire.Value) error { var err error @@ -7778,14 +7778,14 @@ type SecondService_EchoI8_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoI8_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -7817,16 +7817,16 @@ func (v *SecondService_EchoI8_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoI8_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoI8_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoI8_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoI8_Result) FromWire(w wire.Value) error { var err error @@ -8045,14 +8045,14 @@ type SecondService_EchoString_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoString_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -8078,16 +8078,16 @@ func (v *SecondService_EchoString_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoString_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoString_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoString_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoString_Args) FromWire(w wire.Value) error { var err error @@ -8351,14 +8351,14 @@ type SecondService_EchoString_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoString_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -8390,16 +8390,16 @@ func (v *SecondService_EchoString_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoString_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoString_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoString_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoString_Result) FromWire(w wire.Value) error { var err error @@ -8644,14 +8644,14 @@ func (_List_String_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoStringList_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -8695,16 +8695,16 @@ func _List_String_Read(l wire.ValueList) ([]string, error) { // An error is returned if we were unable to build a SecondService_EchoStringList_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoStringList_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoStringList_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoStringList_Args) FromWire(w wire.Value) error { var err error @@ -9047,14 +9047,14 @@ type SecondService_EchoStringList_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoStringList_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -9086,16 +9086,16 @@ func (v *SecondService_EchoStringList_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoStringList_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoStringList_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoStringList_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoStringList_Result) FromWire(w wire.Value) error { var err error @@ -9338,14 +9338,14 @@ func (_Map_String_BazResponse_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoStringMap_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -9408,16 +9408,16 @@ func _Map_String_BazResponse_Read(m wire.MapItemList) (map[string]*base.BazRespo // An error is returned if we were unable to build a SecondService_EchoStringMap_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoStringMap_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoStringMap_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoStringMap_Args) FromWire(w wire.Value) error { var err error @@ -9789,14 +9789,14 @@ type SecondService_EchoStringMap_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoStringMap_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -9828,16 +9828,16 @@ func (v *SecondService_EchoStringMap_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoStringMap_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoStringMap_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoStringMap_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoStringMap_Result) FromWire(w wire.Value) error { var err error @@ -10068,14 +10068,14 @@ func (_Set_String_mapType_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoStringSet_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -10123,16 +10123,16 @@ func _Set_String_mapType_Read(s wire.ValueList) (map[string]struct{}, error) { // An error is returned if we were unable to build a SecondService_EchoStringSet_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoStringSet_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoStringSet_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoStringSet_Args) FromWire(w wire.Value) error { var err error @@ -10480,14 +10480,14 @@ type SecondService_EchoStringSet_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoStringSet_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -10519,16 +10519,16 @@ func (v *SecondService_EchoStringSet_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoStringSet_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoStringSet_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoStringSet_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoStringSet_Result) FromWire(w wire.Value) error { var err error @@ -10762,14 +10762,14 @@ func (_List_BazResponse_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoStructList_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -10813,16 +10813,16 @@ func _List_BazResponse_Read(l wire.ValueList) ([]*base.BazResponse, error) { // An error is returned if we were unable to build a SecondService_EchoStructList_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoStructList_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoStructList_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoStructList_Args) FromWire(w wire.Value) error { var err error @@ -11168,14 +11168,14 @@ type SecondService_EchoStructList_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoStructList_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -11207,16 +11207,16 @@ func (v *SecondService_EchoStructList_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoStructList_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoStructList_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoStructList_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoStructList_Result) FromWire(w wire.Value) error { var err error @@ -11467,14 +11467,14 @@ func (_Map_BazResponse_String_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoStructMap_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -11540,16 +11540,16 @@ func _Map_BazResponse_String_Read(m wire.MapItemList) ([]struct { // An error is returned if we were unable to build a SecondService_EchoStructMap_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoStructMap_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoStructMap_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoStructMap_Args) FromWire(w wire.Value) error { var err error @@ -11986,14 +11986,14 @@ type SecondService_EchoStructMap_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoStructMap_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -12025,16 +12025,16 @@ func (v *SecondService_EchoStructMap_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoStructMap_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoStructMap_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoStructMap_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoStructMap_Result) FromWire(w wire.Value) error { var err error @@ -12271,14 +12271,14 @@ func (_Set_BazResponse_sliceType_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoStructSet_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -12326,16 +12326,16 @@ func _Set_BazResponse_sliceType_Read(s wire.ValueList) ([]*base.BazResponse, err // An error is returned if we were unable to build a SecondService_EchoStructSet_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoStructSet_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoStructSet_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoStructSet_Args) FromWire(w wire.Value) error { var err error @@ -12693,14 +12693,14 @@ type SecondService_EchoStructSet_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoStructSet_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -12732,16 +12732,16 @@ func (v *SecondService_EchoStructSet_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoStructSet_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoStructSet_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoStructSet_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoStructSet_Result) FromWire(w wire.Value) error { var err error @@ -12946,14 +12946,14 @@ type SecondService_EchoTypedef_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoTypedef_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -12985,16 +12985,16 @@ func _UUID_1_Read(w wire.Value) (base.UUID, error) { // An error is returned if we were unable to build a SecondService_EchoTypedef_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoTypedef_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoTypedef_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoTypedef_Args) FromWire(w wire.Value) error { var err error @@ -13264,14 +13264,14 @@ type SecondService_EchoTypedef_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SecondService_EchoTypedef_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -13303,16 +13303,16 @@ func (v *SecondService_EchoTypedef_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SecondService_EchoTypedef_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SecondService_EchoTypedef_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SecondService_EchoTypedef_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SecondService_EchoTypedef_Result) FromWire(w wire.Value) error { var err error @@ -13533,14 +13533,14 @@ type SimpleService_AnotherCall_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_AnotherCall_Args) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -13591,16 +13591,16 @@ func _BazRequest_Read(w wire.Value) (*BazRequest, error) { // An error is returned if we were unable to build a SimpleService_AnotherCall_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_AnotherCall_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_AnotherCall_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_AnotherCall_Args) FromWire(w wire.Value) error { var err error @@ -13999,14 +13999,14 @@ type SimpleService_AnotherCall_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_AnotherCall_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -14044,16 +14044,16 @@ func _AuthErr_Read(w wire.Value) (*AuthErr, error) { // An error is returned if we were unable to build a SimpleService_AnotherCall_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_AnotherCall_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_AnotherCall_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_AnotherCall_Result) FromWire(w wire.Value) error { var err error @@ -14266,14 +14266,14 @@ type SimpleService_Call_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Call_Args) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -14318,16 +14318,16 @@ func (v *SimpleService_Call_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Call_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Call_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Call_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Call_Args) FromWire(w wire.Value) error { var err error @@ -14720,14 +14720,14 @@ type SimpleService_Call_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Call_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -14759,16 +14759,16 @@ func (v *SimpleService_Call_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Call_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Call_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Call_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Call_Result) FromWire(w wire.Value) error { var err error @@ -14974,14 +14974,14 @@ type SimpleService_Compare_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Compare_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -15019,16 +15019,16 @@ func (v *SimpleService_Compare_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Compare_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Compare_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Compare_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Compare_Args) FromWire(w wire.Value) error { var err error @@ -15387,14 +15387,14 @@ type SimpleService_Compare_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Compare_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -15448,16 +15448,16 @@ func _OtherAuthErr_Read(w wire.Value) (*OtherAuthErr, error) { // An error is returned if we were unable to build a SimpleService_Compare_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Compare_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Compare_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Compare_Result) FromWire(w wire.Value) error { var err error @@ -15788,14 +15788,14 @@ type SimpleService_GetProfile_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_GetProfile_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -15830,16 +15830,16 @@ func _GetProfileRequest_Read(w wire.Value) (*GetProfileRequest, error) { // An error is returned if we were unable to build a SimpleService_GetProfile_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_GetProfile_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_GetProfile_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_GetProfile_Args) FromWire(w wire.Value) error { var err error @@ -16132,14 +16132,14 @@ type SimpleService_GetProfile_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_GetProfile_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -16185,16 +16185,16 @@ func _GetProfileResponse_Read(w wire.Value) (*GetProfileResponse, error) { // An error is returned if we were unable to build a SimpleService_GetProfile_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_GetProfile_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_GetProfile_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_GetProfile_Result) FromWire(w wire.Value) error { var err error @@ -16465,14 +16465,14 @@ type SimpleService_HeaderSchema_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_HeaderSchema_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -16507,16 +16507,16 @@ func _HeaderSchema_Read(w wire.Value) (*HeaderSchema, error) { // An error is returned if we were unable to build a SimpleService_HeaderSchema_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_HeaderSchema_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_HeaderSchema_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_HeaderSchema_Args) FromWire(w wire.Value) error { var err error @@ -16821,14 +16821,14 @@ type SimpleService_HeaderSchema_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_HeaderSchema_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -16876,16 +16876,16 @@ func (v *SimpleService_HeaderSchema_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_HeaderSchema_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_HeaderSchema_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_HeaderSchema_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_HeaderSchema_Result) FromWire(w wire.Value) error { var err error @@ -17209,14 +17209,14 @@ type SimpleService_Ping_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Ping_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -17233,16 +17233,16 @@ func (v *SimpleService_Ping_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Ping_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Ping_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Ping_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Ping_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -17448,14 +17448,14 @@ type SimpleService_Ping_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Ping_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -17487,16 +17487,16 @@ func (v *SimpleService_Ping_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Ping_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Ping_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Ping_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Ping_Result) FromWire(w wire.Value) error { var err error @@ -17700,14 +17700,14 @@ type SimpleService_SillyNoop_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_SillyNoop_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -17724,16 +17724,16 @@ func (v *SimpleService_SillyNoop_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_SillyNoop_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_SillyNoop_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_SillyNoop_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_SillyNoop_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -17956,14 +17956,14 @@ type SimpleService_SillyNoop_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_SillyNoop_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -18009,16 +18009,16 @@ func _ServerErr_Read(w wire.Value) (*base.ServerErr, error) { // An error is returned if we were unable to build a SimpleService_SillyNoop_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_SillyNoop_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_SillyNoop_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_SillyNoop_Result) FromWire(w wire.Value) error { var err error @@ -18288,14 +18288,14 @@ type SimpleService_TestUuid_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TestUuid_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -18312,16 +18312,16 @@ func (v *SimpleService_TestUuid_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_TestUuid_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TestUuid_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TestUuid_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TestUuid_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -18517,14 +18517,14 @@ type SimpleService_TestUuid_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TestUuid_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -18541,16 +18541,16 @@ func (v *SimpleService_TestUuid_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_TestUuid_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TestUuid_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TestUuid_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TestUuid_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -18679,14 +18679,14 @@ type SimpleService_Trans_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Trans_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -18729,16 +18729,16 @@ func _TransStruct_Read(w wire.Value) (*base.TransStruct, error) { // An error is returned if we were unable to build a SimpleService_Trans_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Trans_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Trans_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Trans_Args) FromWire(w wire.Value) error { var err error @@ -19097,14 +19097,14 @@ type SimpleService_Trans_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Trans_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -19152,16 +19152,16 @@ func (v *SimpleService_Trans_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Trans_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Trans_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Trans_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Trans_Result) FromWire(w wire.Value) error { var err error @@ -19486,14 +19486,14 @@ type SimpleService_TransHeaders_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TransHeaders_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -19528,16 +19528,16 @@ func _TransHeaders_Read(w wire.Value) (*base.TransHeaders, error) { // An error is returned if we were unable to build a SimpleService_TransHeaders_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TransHeaders_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TransHeaders_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TransHeaders_Args) FromWire(w wire.Value) error { var err error @@ -19842,14 +19842,14 @@ type SimpleService_TransHeaders_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TransHeaders_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -19897,16 +19897,16 @@ func (v *SimpleService_TransHeaders_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_TransHeaders_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TransHeaders_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TransHeaders_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TransHeaders_Result) FromWire(w wire.Value) error { var err error @@ -20234,14 +20234,14 @@ type SimpleService_TransHeadersNoReq_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TransHeadersNoReq_Args) ToWire() (wire.Value, error) { var ( fields [4]wire.Field @@ -20299,16 +20299,16 @@ func _NestedStruct_Read(w wire.Value) (*base.NestedStruct, error) { // An error is returned if we were unable to build a SimpleService_TransHeadersNoReq_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TransHeadersNoReq_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TransHeadersNoReq_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TransHeadersNoReq_Args) FromWire(w wire.Value) error { var err error @@ -20771,14 +20771,14 @@ type SimpleService_TransHeadersNoReq_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TransHeadersNoReq_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -20818,16 +20818,16 @@ func (v *SimpleService_TransHeadersNoReq_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_TransHeadersNoReq_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TransHeadersNoReq_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TransHeadersNoReq_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TransHeadersNoReq_Result) FromWire(w wire.Value) error { var err error @@ -21092,14 +21092,14 @@ type SimpleService_TransHeadersType_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TransHeadersType_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -21134,16 +21134,16 @@ func _TransHeaderType_Read(w wire.Value) (*TransHeaderType, error) { // An error is returned if we were unable to build a SimpleService_TransHeadersType_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TransHeadersType_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TransHeadersType_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TransHeadersType_Args) FromWire(w wire.Value) error { var err error @@ -21448,14 +21448,14 @@ type SimpleService_TransHeadersType_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TransHeadersType_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -21503,16 +21503,16 @@ func (v *SimpleService_TransHeadersType_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_TransHeadersType_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TransHeadersType_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TransHeadersType_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TransHeadersType_Result) FromWire(w wire.Value) error { var err error @@ -21836,14 +21836,14 @@ type SimpleService_UrlTest_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_UrlTest_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -21860,16 +21860,16 @@ func (v *SimpleService_UrlTest_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_UrlTest_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_UrlTest_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_UrlTest_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_UrlTest_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -22065,14 +22065,14 @@ type SimpleService_UrlTest_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_UrlTest_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -22089,16 +22089,16 @@ func (v *SimpleService_UrlTest_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_UrlTest_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_UrlTest_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_UrlTest_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_UrlTest_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { diff --git a/examples/example-gateway/build/gen-code/clients-idl/clients/contacts/contacts/contacts.go b/examples/example-gateway/build/gen-code/clients-idl/clients/contacts/contacts/contacts.go index 41984a4b8..3671161ef 100644 --- a/examples/example-gateway/build/gen-code/clients-idl/clients/contacts/contacts/contacts.go +++ b/examples/example-gateway/build/gen-code/clients-idl/clients/contacts/contacts/contacts.go @@ -24,14 +24,14 @@ type BadRequest struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BadRequest) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -48,16 +48,16 @@ func (v *BadRequest) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a BadRequest struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BadRequest -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BadRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BadRequest) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -207,14 +207,14 @@ func (_List_ContactFragment_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Contact) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -280,16 +280,16 @@ func _ContactAttributes_Read(w wire.Value) (*ContactAttributes, error) { // An error is returned if we were unable to build a Contact struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Contact -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Contact +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Contact) FromWire(w wire.Value) error { var err error @@ -603,14 +603,14 @@ type ContactAttributes struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ContactAttributes) ToWire() (wire.Value, error) { var ( fields [13]wire.Field @@ -734,16 +734,16 @@ func (v *ContactAttributes) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ContactAttributes struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ContactAttributes -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ContactAttributes +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ContactAttributes) FromWire(w wire.Value) error { var err error @@ -1600,14 +1600,14 @@ type ContactFragment struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ContactFragment) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -1649,16 +1649,16 @@ func _ContactFragmentType_Read(w wire.Value) (ContactFragmentType, error) { // An error is returned if we were unable to build a ContactFragment struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ContactFragment -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ContactFragment +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ContactFragment) FromWire(w wire.Value) error { var err error @@ -1942,14 +1942,14 @@ type NotFound struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *NotFound) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -1966,16 +1966,16 @@ func (v *NotFound) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a NotFound struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v NotFound -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v NotFound +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *NotFound) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -2125,14 +2125,14 @@ func (_List_Contact_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SaveContactsRequest) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -2189,16 +2189,16 @@ func _List_Contact_Read(l wire.ValueList) ([]*Contact, error) { // An error is returned if we were unable to build a SaveContactsRequest struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SaveContactsRequest -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SaveContactsRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SaveContactsRequest) FromWire(w wire.Value) error { var err error @@ -2496,14 +2496,14 @@ type SaveContactsResponse struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SaveContactsResponse) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -2520,16 +2520,16 @@ func (v *SaveContactsResponse) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SaveContactsResponse struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SaveContactsResponse -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SaveContactsResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SaveContactsResponse) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -2690,14 +2690,14 @@ type Contacts_SaveContacts_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Contacts_SaveContacts_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -2732,16 +2732,16 @@ func _SaveContactsRequest_Read(w wire.Value) (*SaveContactsRequest, error) { // An error is returned if we were unable to build a Contacts_SaveContacts_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Contacts_SaveContacts_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Contacts_SaveContacts_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Contacts_SaveContacts_Args) FromWire(w wire.Value) error { var err error @@ -3046,14 +3046,14 @@ type Contacts_SaveContacts_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Contacts_SaveContacts_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -3119,16 +3119,16 @@ func _NotFound_Read(w wire.Value) (*NotFound, error) { // An error is returned if we were unable to build a Contacts_SaveContacts_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Contacts_SaveContacts_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Contacts_SaveContacts_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Contacts_SaveContacts_Result) FromWire(w wire.Value) error { var err error @@ -3470,14 +3470,14 @@ type Contacts_TestUrlUrl_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Contacts_TestUrlUrl_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -3494,16 +3494,16 @@ func (v *Contacts_TestUrlUrl_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Contacts_TestUrlUrl_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Contacts_TestUrlUrl_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Contacts_TestUrlUrl_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Contacts_TestUrlUrl_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -3709,14 +3709,14 @@ type Contacts_TestUrlUrl_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Contacts_TestUrlUrl_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -3748,16 +3748,16 @@ func (v *Contacts_TestUrlUrl_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Contacts_TestUrlUrl_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Contacts_TestUrlUrl_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Contacts_TestUrlUrl_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Contacts_TestUrlUrl_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/clients-idl/clients/corge/corge/corge.go b/examples/example-gateway/build/gen-code/clients-idl/clients/corge/corge/corge.go index 5f1599bcf..11f173d5d 100644 --- a/examples/example-gateway/build/gen-code/clients-idl/clients/corge/corge/corge.go +++ b/examples/example-gateway/build/gen-code/clients-idl/clients/corge/corge/corge.go @@ -24,14 +24,14 @@ type Foo struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Foo) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -48,16 +48,16 @@ func (v *Foo) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Foo struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Foo -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Foo +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Foo) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -166,14 +166,14 @@ type NotModified struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *NotModified) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -190,16 +190,16 @@ func (v *NotModified) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a NotModified struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v NotModified -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v NotModified +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *NotModified) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -322,14 +322,14 @@ type Corge_EchoBool_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Corge_EchoBool_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -355,16 +355,16 @@ func (v *Corge_EchoBool_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Corge_EchoBool_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Corge_EchoBool_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Corge_EchoBool_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Corge_EchoBool_Args) FromWire(w wire.Value) error { var err error @@ -628,14 +628,14 @@ type Corge_EchoBool_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Corge_EchoBool_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -667,16 +667,16 @@ func (v *Corge_EchoBool_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Corge_EchoBool_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Corge_EchoBool_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Corge_EchoBool_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Corge_EchoBool_Result) FromWire(w wire.Value) error { var err error @@ -895,14 +895,14 @@ type Corge_EchoString_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Corge_EchoString_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -928,16 +928,16 @@ func (v *Corge_EchoString_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Corge_EchoString_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Corge_EchoString_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Corge_EchoString_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Corge_EchoString_Args) FromWire(w wire.Value) error { var err error @@ -1201,14 +1201,14 @@ type Corge_EchoString_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Corge_EchoString_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1240,16 +1240,16 @@ func (v *Corge_EchoString_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Corge_EchoString_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Corge_EchoString_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Corge_EchoString_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Corge_EchoString_Result) FromWire(w wire.Value) error { var err error @@ -1468,14 +1468,14 @@ type Corge_NoContent_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Corge_NoContent_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1501,16 +1501,16 @@ func (v *Corge_NoContent_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Corge_NoContent_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Corge_NoContent_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Corge_NoContent_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Corge_NoContent_Args) FromWire(w wire.Value) error { var err error @@ -1779,14 +1779,14 @@ type Corge_NoContent_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Corge_NoContent_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1824,16 +1824,16 @@ func _NotModified_Read(w wire.Value) (*NotModified, error) { // An error is returned if we were unable to build a Corge_NoContent_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Corge_NoContent_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Corge_NoContent_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Corge_NoContent_Result) FromWire(w wire.Value) error { var err error @@ -2044,14 +2044,14 @@ type Corge_NoContentNoException_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Corge_NoContentNoException_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -2077,16 +2077,16 @@ func (v *Corge_NoContentNoException_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Corge_NoContentNoException_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Corge_NoContentNoException_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Corge_NoContentNoException_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Corge_NoContentNoException_Args) FromWire(w wire.Value) error { var err error @@ -2340,14 +2340,14 @@ type Corge_NoContentNoException_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Corge_NoContentNoException_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -2364,16 +2364,16 @@ func (v *Corge_NoContentNoException_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Corge_NoContentNoException_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Corge_NoContentNoException_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Corge_NoContentNoException_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Corge_NoContentNoException_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -2501,14 +2501,14 @@ type Corge_NoContentOnException_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Corge_NoContentOnException_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -2534,16 +2534,16 @@ func (v *Corge_NoContentOnException_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Corge_NoContentOnException_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Corge_NoContentOnException_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Corge_NoContentOnException_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Corge_NoContentOnException_Args) FromWire(w wire.Value) error { var err error @@ -2822,14 +2822,14 @@ type Corge_NoContentOnException_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Corge_NoContentOnException_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -2875,16 +2875,16 @@ func _Foo_Read(w wire.Value) (*Foo, error) { // An error is returned if we were unable to build a Corge_NoContentOnException_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Corge_NoContentOnException_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Corge_NoContentOnException_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Corge_NoContentOnException_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/clients-idl/clients/echo/echo.pb.yarpc.go b/examples/example-gateway/build/gen-code/clients-idl/clients/echo/echo.pb.yarpc.go index 5fcf5f61d..ac9418fe6 100644 --- a/examples/example-gateway/build/gen-code/clients-idl/clients/echo/echo.pb.yarpc.go +++ b/examples/example-gateway/build/gen-code/clients-idl/clients/echo/echo.pb.yarpc.go @@ -107,10 +107,10 @@ type FxEchoYARPCClientResult struct { // NewFxEchoYARPCClient provides a EchoYARPCClient // to an Fx application using the given name for routing. // -// fx.Provide( -// echo.NewFxEchoYARPCClient("service-name"), -// ... -// ) +// fx.Provide( +// echo.NewFxEchoYARPCClient("service-name"), +// ... +// ) func NewFxEchoYARPCClient(name string, options ...protobuf.ClientOption) interface{} { return func(params FxEchoYARPCClientParams) FxEchoYARPCClientResult { cc := params.Provider.ClientConfig(name) @@ -156,10 +156,10 @@ type FxEchoYARPCProceduresResult struct { // NewFxEchoYARPCProcedures provides EchoYARPCServer procedures to an Fx application. // It expects a EchoYARPCServer to be present in the container. // -// fx.Provide( -// echo.NewFxEchoYARPCProcedures(), -// ... -// ) +// fx.Provide( +// echo.NewFxEchoYARPCProcedures(), +// ... +// ) func NewFxEchoYARPCProcedures() interface{} { return func(params FxEchoYARPCProceduresParams) FxEchoYARPCProceduresResult { return FxEchoYARPCProceduresResult{ diff --git a/examples/example-gateway/build/gen-code/clients-idl/clients/foo/base/base/base.go b/examples/example-gateway/build/gen-code/clients-idl/clients/foo/base/base/base.go index 6a6319ad1..b53de2e66 100644 --- a/examples/example-gateway/build/gen-code/clients-idl/clients/foo/base/base/base.go +++ b/examples/example-gateway/build/gen-code/clients-idl/clients/foo/base/base/base.go @@ -24,14 +24,14 @@ type Message struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Message) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -57,16 +57,16 @@ func (v *Message) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Message struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Message -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Message +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Message) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/clients-idl/clients/foo/foo/foo.go b/examples/example-gateway/build/gen-code/clients-idl/clients/foo/foo/foo.go index 1dc2efe9d..952c40476 100644 --- a/examples/example-gateway/build/gen-code/clients-idl/clients/foo/foo/foo.go +++ b/examples/example-gateway/build/gen-code/clients-idl/clients/foo/foo/foo.go @@ -26,14 +26,14 @@ type FooException struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *FooException) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -59,16 +59,16 @@ func (v *FooException) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a FooException struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v FooException -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v FooException +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *FooException) FromWire(w wire.Value) error { var err error @@ -240,14 +240,14 @@ type FooName struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *FooName) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -275,16 +275,16 @@ func (v *FooName) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a FooName struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v FooName -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v FooName +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *FooName) FromWire(w wire.Value) error { var err error @@ -501,14 +501,14 @@ func (_Map_String_String_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *FooStruct) ToWire() (wire.Value, error) { var ( fields [7]wire.Field @@ -616,16 +616,16 @@ func _Message_Read(w wire.Value) (*base.Message, error) { // An error is returned if we were unable to build a FooStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v FooStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v FooStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *FooStruct) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/clients-idl/clients/googlenow/googlenow/googlenow.go b/examples/example-gateway/build/gen-code/clients-idl/clients/googlenow/googlenow/googlenow.go index b5d3d057a..90f9d62d5 100644 --- a/examples/example-gateway/build/gen-code/clients-idl/clients/googlenow/googlenow/googlenow.go +++ b/examples/example-gateway/build/gen-code/clients-idl/clients/googlenow/googlenow/googlenow.go @@ -27,14 +27,14 @@ type GoogleNowService_AddCredentials_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *GoogleNowService_AddCredentials_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -60,16 +60,16 @@ func (v *GoogleNowService_AddCredentials_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a GoogleNowService_AddCredentials_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v GoogleNowService_AddCredentials_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v GoogleNowService_AddCredentials_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *GoogleNowService_AddCredentials_Args) FromWire(w wire.Value) error { var err error @@ -323,14 +323,14 @@ type GoogleNowService_AddCredentials_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *GoogleNowService_AddCredentials_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -347,16 +347,16 @@ func (v *GoogleNowService_AddCredentials_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a GoogleNowService_AddCredentials_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v GoogleNowService_AddCredentials_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v GoogleNowService_AddCredentials_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *GoogleNowService_AddCredentials_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -483,14 +483,14 @@ type GoogleNowService_CheckCredentials_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *GoogleNowService_CheckCredentials_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -507,16 +507,16 @@ func (v *GoogleNowService_CheckCredentials_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a GoogleNowService_CheckCredentials_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v GoogleNowService_CheckCredentials_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v GoogleNowService_CheckCredentials_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *GoogleNowService_CheckCredentials_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -712,14 +712,14 @@ type GoogleNowService_CheckCredentials_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *GoogleNowService_CheckCredentials_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -736,16 +736,16 @@ func (v *GoogleNowService_CheckCredentials_Result) ToWire() (wire.Value, error) // An error is returned if we were unable to build a GoogleNowService_CheckCredentials_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v GoogleNowService_CheckCredentials_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v GoogleNowService_CheckCredentials_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *GoogleNowService_CheckCredentials_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { diff --git a/examples/example-gateway/build/gen-code/clients-idl/clients/multi/multi/multi.go b/examples/example-gateway/build/gen-code/clients-idl/clients/multi/multi/multi.go index 669caf5c0..3cc22c40a 100644 --- a/examples/example-gateway/build/gen-code/clients-idl/clients/multi/multi/multi.go +++ b/examples/example-gateway/build/gen-code/clients-idl/clients/multi/multi/multi.go @@ -26,14 +26,14 @@ type ServiceABack_HelloA_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServiceABack_HelloA_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -50,16 +50,16 @@ func (v *ServiceABack_HelloA_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServiceABack_HelloA_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServiceABack_HelloA_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServiceABack_HelloA_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServiceABack_HelloA_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -265,14 +265,14 @@ type ServiceABack_HelloA_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServiceABack_HelloA_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -304,16 +304,16 @@ func (v *ServiceABack_HelloA_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServiceABack_HelloA_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServiceABack_HelloA_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServiceABack_HelloA_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServiceABack_HelloA_Result) FromWire(w wire.Value) error { var err error @@ -531,14 +531,14 @@ type ServiceBBack_HelloB_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServiceBBack_HelloB_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -555,16 +555,16 @@ func (v *ServiceBBack_HelloB_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServiceBBack_HelloB_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServiceBBack_HelloB_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServiceBBack_HelloB_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServiceBBack_HelloB_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -770,14 +770,14 @@ type ServiceBBack_HelloB_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServiceBBack_HelloB_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -809,16 +809,16 @@ func (v *ServiceBBack_HelloB_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServiceBBack_HelloB_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServiceBBack_HelloB_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServiceBBack_HelloB_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServiceBBack_HelloB_Result) FromWire(w wire.Value) error { var err error @@ -1026,14 +1026,14 @@ type ServiceCBack_Hello_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServiceCBack_Hello_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -1050,16 +1050,16 @@ func (v *ServiceCBack_Hello_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServiceCBack_Hello_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServiceCBack_Hello_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServiceCBack_Hello_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServiceCBack_Hello_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -1265,14 +1265,14 @@ type ServiceCBack_Hello_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServiceCBack_Hello_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1304,16 +1304,16 @@ func (v *ServiceCBack_Hello_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServiceCBack_Hello_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServiceCBack_Hello_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServiceCBack_Hello_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServiceCBack_Hello_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/clients-idl/clients/withexceptions/withexceptions/withexceptions.go b/examples/example-gateway/build/gen-code/clients-idl/clients/withexceptions/withexceptions/withexceptions.go index c93f1aa61..9bf9bc20f 100644 --- a/examples/example-gateway/build/gen-code/clients-idl/clients/withexceptions/withexceptions/withexceptions.go +++ b/examples/example-gateway/build/gen-code/clients-idl/clients/withexceptions/withexceptions/withexceptions.go @@ -25,14 +25,14 @@ type ExceptionType1 struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ExceptionType1) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -58,16 +58,16 @@ func (v *ExceptionType1) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ExceptionType1 struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ExceptionType1 -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ExceptionType1 +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ExceptionType1) FromWire(w wire.Value) error { var err error @@ -239,14 +239,14 @@ type ExceptionType2 struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ExceptionType2) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -272,16 +272,16 @@ func (v *ExceptionType2) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ExceptionType2 struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ExceptionType2 -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ExceptionType2 +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ExceptionType2) FromWire(w wire.Value) error { var err error @@ -452,14 +452,14 @@ type Response struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Response) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -476,16 +476,16 @@ func (v *Response) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Response struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Response -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Response +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Response) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -597,14 +597,14 @@ type WithExceptions_Func1_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *WithExceptions_Func1_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -621,16 +621,16 @@ func (v *WithExceptions_Func1_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a WithExceptions_Func1_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v WithExceptions_Func1_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v WithExceptions_Func1_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *WithExceptions_Func1_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -863,14 +863,14 @@ type WithExceptions_Func1_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *WithExceptions_Func1_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -936,16 +936,16 @@ func _ExceptionType2_Read(w wire.Value) (*ExceptionType2, error) { // An error is returned if we were unable to build a WithExceptions_Func1_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v WithExceptions_Func1_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v WithExceptions_Func1_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *WithExceptions_Func1_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/app/demo/endpoints/abc/abc.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/app/demo/endpoints/abc/abc.go index f113f39ce..d92699ddb 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/app/demo/endpoints/abc/abc.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/app/demo/endpoints/abc/abc.go @@ -26,14 +26,14 @@ type AppDemoService_Call_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *AppDemoService_Call_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -50,16 +50,16 @@ func (v *AppDemoService_Call_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a AppDemoService_Call_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v AppDemoService_Call_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v AppDemoService_Call_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *AppDemoService_Call_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -265,14 +265,14 @@ type AppDemoService_Call_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *AppDemoService_Call_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -304,16 +304,16 @@ func (v *AppDemoService_Call_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a AppDemoService_Call_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v AppDemoService_Call_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v AppDemoService_Call_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *AppDemoService_Call_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/bar/bar/bar.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/bar/bar/bar.go index b1186bbfd..32e9119c1 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/bar/bar/bar.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/bar/bar/bar.go @@ -31,14 +31,14 @@ type BarException struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarException) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -64,16 +64,16 @@ func (v *BarException) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a BarException struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarException -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarException +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarException) FromWire(w wire.Value) error { var err error @@ -250,14 +250,14 @@ type BarRequest struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarRequest) ToWire() (wire.Value, error) { var ( fields [6]wire.Field @@ -338,16 +338,16 @@ func _Long_Read(w wire.Value) (Long, error) { // An error is returned if we were unable to build a BarRequest struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarRequest -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarRequest) FromWire(w wire.Value) error { var err error @@ -856,14 +856,14 @@ func (_Map_String_I32_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarResponse) ToWire() (wire.Value, error) { var ( fields [7]wire.Field @@ -1006,16 +1006,16 @@ func _BarResponse_Read(w wire.Value) (*BarResponse, error) { // An error is returned if we were unable to build a BarResponse struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarResponse -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarResponse) FromWire(w wire.Value) error { var err error @@ -1698,8 +1698,8 @@ func DemoType_Values() []DemoType { // UnmarshalText tries to decode DemoType from a byte slice // containing its name. // -// var v DemoType -// err := v.UnmarshalText([]byte("FIRST")) +// var v DemoType +// err := v.UnmarshalText([]byte("FIRST")) func (v *DemoType) UnmarshalText(value []byte) error { switch s := string(value); s { case "FIRST": @@ -1756,10 +1756,10 @@ func (v DemoType) Ptr() *DemoType { // Encode encodes DemoType directly to bytes. // -// sWriter := BinaryStreamer.Writer(writer) +// sWriter := BinaryStreamer.Writer(writer) // -// var v DemoType -// return v.Encode(sWriter) +// var v DemoType +// return v.Encode(sWriter) func (v DemoType) Encode(sw stream.Writer) error { return sw.WriteInt32(int32(v)) } @@ -1776,16 +1776,16 @@ func (v DemoType) ToWire() (wire.Value, error) { // FromWire deserializes DemoType from its Thrift-level // representation. // -// x, err := binaryProtocol.Decode(reader, wire.TI32) -// if err != nil { -// return DemoType(0), err -// } +// x, err := binaryProtocol.Decode(reader, wire.TI32) +// if err != nil { +// return DemoType(0), err +// } // -// var v DemoType -// if err := v.FromWire(x); err != nil { -// return DemoType(0), err -// } -// return v, nil +// var v DemoType +// if err := v.FromWire(x); err != nil { +// return DemoType(0), err +// } +// return v, nil func (v *DemoType) FromWire(w wire.Value) error { *v = (DemoType)(w.GetI32()) return nil @@ -1793,13 +1793,13 @@ func (v *DemoType) FromWire(w wire.Value) error { // Decode reads off the encoded DemoType directly off of the wire. // -// sReader := BinaryStreamer.Reader(reader) +// sReader := BinaryStreamer.Reader(reader) // -// var v DemoType -// if err := v.Decode(sReader); err != nil { -// return DemoType(0), err -// } -// return v, nil +// var v DemoType +// if err := v.Decode(sReader); err != nil { +// return DemoType(0), err +// } +// return v, nil func (v *DemoType) Decode(sr stream.Reader) error { i, err := sr.ReadInt32() if err != nil { @@ -1897,8 +1897,8 @@ func Fruit_Values() []Fruit { // UnmarshalText tries to decode Fruit from a byte slice // containing its name. // -// var v Fruit -// err := v.UnmarshalText([]byte("APPLE")) +// var v Fruit +// err := v.UnmarshalText([]byte("APPLE")) func (v *Fruit) UnmarshalText(value []byte) error { switch s := string(value); s { case "APPLE": @@ -1955,10 +1955,10 @@ func (v Fruit) Ptr() *Fruit { // Encode encodes Fruit directly to bytes. // -// sWriter := BinaryStreamer.Writer(writer) +// sWriter := BinaryStreamer.Writer(writer) // -// var v Fruit -// return v.Encode(sWriter) +// var v Fruit +// return v.Encode(sWriter) func (v Fruit) Encode(sw stream.Writer) error { return sw.WriteInt32(int32(v)) } @@ -1975,16 +1975,16 @@ func (v Fruit) ToWire() (wire.Value, error) { // FromWire deserializes Fruit from its Thrift-level // representation. // -// x, err := binaryProtocol.Decode(reader, wire.TI32) -// if err != nil { -// return Fruit(0), err -// } +// x, err := binaryProtocol.Decode(reader, wire.TI32) +// if err != nil { +// return Fruit(0), err +// } // -// var v Fruit -// if err := v.FromWire(x); err != nil { -// return Fruit(0), err -// } -// return v, nil +// var v Fruit +// if err := v.FromWire(x); err != nil { +// return Fruit(0), err +// } +// return v, nil func (v *Fruit) FromWire(w wire.Value) error { *v = (Fruit)(w.GetI32()) return nil @@ -1992,13 +1992,13 @@ func (v *Fruit) FromWire(w wire.Value) error { // Decode reads off the encoded Fruit directly off of the wire. // -// sReader := BinaryStreamer.Reader(reader) +// sReader := BinaryStreamer.Reader(reader) // -// var v Fruit -// if err := v.Decode(sReader); err != nil { -// return Fruit(0), err -// } -// return v, nil +// var v Fruit +// if err := v.Decode(sReader); err != nil { +// return Fruit(0), err +// } +// return v, nil func (v *Fruit) Decode(sr stream.Reader) error { i, err := sr.ReadInt32() if err != nil { @@ -2137,14 +2137,14 @@ type ParamsStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ParamsStruct) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -2170,16 +2170,16 @@ func (v *ParamsStruct) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ParamsStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ParamsStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ParamsStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ParamsStruct) FromWire(w wire.Value) error { var err error @@ -2344,14 +2344,14 @@ type QueryParamsOptsStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *QueryParamsOptsStruct) ToWire() (wire.Value, error) { var ( fields [4]wire.Field @@ -2401,16 +2401,16 @@ func (v *QueryParamsOptsStruct) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a QueryParamsOptsStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v QueryParamsOptsStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v QueryParamsOptsStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *QueryParamsOptsStruct) FromWire(w wire.Value) error { var err error @@ -2777,14 +2777,14 @@ func (_List_String_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *QueryParamsStruct) ToWire() (wire.Value, error) { var ( fields [5]wire.Field @@ -2859,16 +2859,16 @@ func _List_String_Read(l wire.ValueList) ([]string, error) { // An error is returned if we were unable to build a QueryParamsStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v QueryParamsStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v QueryParamsStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *QueryParamsStruct) FromWire(w wire.Value) error { var err error @@ -3326,14 +3326,14 @@ type RequestWithDuplicateType struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *RequestWithDuplicateType) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -3375,16 +3375,16 @@ func _BarRequest_Read(w wire.Value) (*BarRequest, error) { // An error is returned if we were unable to build a RequestWithDuplicateType struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v RequestWithDuplicateType -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v RequestWithDuplicateType +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *RequestWithDuplicateType) FromWire(w wire.Value) error { var err error @@ -3602,14 +3602,14 @@ type SeeOthersRedirection struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SeeOthersRedirection) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -3626,16 +3626,16 @@ func (v *SeeOthersRedirection) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SeeOthersRedirection struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SeeOthersRedirection -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SeeOthersRedirection +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SeeOthersRedirection) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -4066,14 +4066,14 @@ type Bar_ArgNotStruct_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgNotStruct_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -4099,16 +4099,16 @@ func (v *Bar_ArgNotStruct_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgNotStruct_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgNotStruct_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgNotStruct_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgNotStruct_Args) FromWire(w wire.Value) error { var err error @@ -4377,14 +4377,14 @@ type Bar_ArgNotStruct_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgNotStruct_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -4422,16 +4422,16 @@ func _BarException_Read(w wire.Value) (*BarException, error) { // An error is returned if we were unable to build a Bar_ArgNotStruct_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgNotStruct_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgNotStruct_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgNotStruct_Result) FromWire(w wire.Value) error { var err error @@ -4643,14 +4643,14 @@ type Bar_ArgWithHeaders_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithHeaders_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -4684,16 +4684,16 @@ func (v *Bar_ArgWithHeaders_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithHeaders_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithHeaders_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithHeaders_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithHeaders_Args) FromWire(w wire.Value) error { var err error @@ -5015,14 +5015,14 @@ type Bar_ArgWithHeaders_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithHeaders_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -5054,16 +5054,16 @@ func (v *Bar_ArgWithHeaders_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithHeaders_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithHeaders_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithHeaders_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithHeaders_Result) FromWire(w wire.Value) error { var err error @@ -5347,14 +5347,14 @@ func (_List_DemoType_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithManyQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [28]wire.Field @@ -5637,16 +5637,16 @@ func _List_DemoType_Read(l wire.ValueList) ([]DemoType, error) { // An error is returned if we were unable to build a Bar_ArgWithManyQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithManyQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithManyQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithManyQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -7684,14 +7684,14 @@ type Bar_ArgWithManyQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithManyQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -7723,16 +7723,16 @@ func (v *Bar_ArgWithManyQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithManyQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithManyQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithManyQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithManyQueryParams_Result) FromWire(w wire.Value) error { var err error @@ -7940,14 +7940,14 @@ type Bar_ArgWithNearDupQueryParams_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithNearDupQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [4]wire.Field @@ -7997,16 +7997,16 @@ func (v *Bar_ArgWithNearDupQueryParams_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithNearDupQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithNearDupQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithNearDupQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithNearDupQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -8444,14 +8444,14 @@ type Bar_ArgWithNearDupQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithNearDupQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -8483,16 +8483,16 @@ func (v *Bar_ArgWithNearDupQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithNearDupQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithNearDupQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithNearDupQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithNearDupQueryParams_Result) FromWire(w wire.Value) error { var err error @@ -8698,14 +8698,14 @@ type Bar_ArgWithNestedQueryParams_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithNestedQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -8754,16 +8754,16 @@ func _QueryParamsOptsStruct_Read(w wire.Value) (*QueryParamsOptsStruct, error) { // An error is returned if we were unable to build a Bar_ArgWithNestedQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithNestedQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithNestedQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithNestedQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -9101,14 +9101,14 @@ type Bar_ArgWithNestedQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithNestedQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -9140,16 +9140,16 @@ func (v *Bar_ArgWithNestedQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithNestedQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithNestedQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithNestedQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithNestedQueryParams_Result) FromWire(w wire.Value) error { var err error @@ -9355,14 +9355,14 @@ type Bar_ArgWithParams_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithParams_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -9402,16 +9402,16 @@ func _ParamsStruct_Read(w wire.Value) (*ParamsStruct, error) { // An error is returned if we were unable to build a Bar_ArgWithParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithParams_Args) FromWire(w wire.Value) error { var err error @@ -9735,14 +9735,14 @@ type Bar_ArgWithParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -9774,16 +9774,16 @@ func (v *Bar_ArgWithParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithParams_Result) FromWire(w wire.Value) error { var err error @@ -9989,14 +9989,14 @@ type Bar_ArgWithParamsAndDuplicateFields_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithParamsAndDuplicateFields_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -10038,16 +10038,16 @@ func _RequestWithDuplicateType_Read(w wire.Value) (*RequestWithDuplicateType, er // An error is returned if we were unable to build a Bar_ArgWithParamsAndDuplicateFields_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithParamsAndDuplicateFields_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithParamsAndDuplicateFields_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithParamsAndDuplicateFields_Args) FromWire(w wire.Value) error { var err error @@ -10377,14 +10377,14 @@ type Bar_ArgWithParamsAndDuplicateFields_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithParamsAndDuplicateFields_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -10416,16 +10416,16 @@ func (v *Bar_ArgWithParamsAndDuplicateFields_Result) ToWire() (wire.Value, error // An error is returned if we were unable to build a Bar_ArgWithParamsAndDuplicateFields_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithParamsAndDuplicateFields_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithParamsAndDuplicateFields_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithParamsAndDuplicateFields_Result) FromWire(w wire.Value) error { var err error @@ -10630,14 +10630,14 @@ type Bar_ArgWithQueryHeader_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithQueryHeader_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -10665,16 +10665,16 @@ func (v *Bar_ArgWithQueryHeader_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithQueryHeader_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithQueryHeader_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithQueryHeader_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithQueryHeader_Args) FromWire(w wire.Value) error { var err error @@ -10942,14 +10942,14 @@ type Bar_ArgWithQueryHeader_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithQueryHeader_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -10981,16 +10981,16 @@ func (v *Bar_ArgWithQueryHeader_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithQueryHeader_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithQueryHeader_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithQueryHeader_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithQueryHeader_Result) FromWire(w wire.Value) error { var err error @@ -11224,14 +11224,14 @@ func (_List_Byte_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [4]wire.Field @@ -11298,16 +11298,16 @@ func _List_Byte_Read(l wire.ValueList) ([]int8, error) { // An error is returned if we were unable to build a Bar_ArgWithQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -11816,14 +11816,14 @@ type Bar_ArgWithQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -11855,16 +11855,16 @@ func (v *Bar_ArgWithQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithQueryParams_Result) FromWire(w wire.Value) error { var err error @@ -12070,14 +12070,14 @@ type Bar_DeleteWithBody_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteWithBody_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -12111,16 +12111,16 @@ func (v *Bar_DeleteWithBody_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteWithBody_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteWithBody_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteWithBody_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteWithBody_Args) FromWire(w wire.Value) error { var err error @@ -12432,14 +12432,14 @@ type Bar_DeleteWithBody_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteWithBody_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -12456,16 +12456,16 @@ func (v *Bar_DeleteWithBody_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteWithBody_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteWithBody_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteWithBody_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteWithBody_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -12594,14 +12594,14 @@ type Bar_DeleteWithQueryParams_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteWithQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -12635,16 +12635,16 @@ func (v *Bar_DeleteWithQueryParams_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteWithQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteWithQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteWithQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteWithQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -12956,14 +12956,14 @@ type Bar_DeleteWithQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteWithQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -12980,16 +12980,16 @@ func (v *Bar_DeleteWithQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteWithQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteWithQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteWithQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteWithQueryParams_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -13116,14 +13116,14 @@ type Bar_HelloWorld_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_HelloWorld_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -13140,16 +13140,16 @@ func (v *Bar_HelloWorld_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_HelloWorld_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_HelloWorld_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_HelloWorld_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_HelloWorld_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -13382,14 +13382,14 @@ type Bar_HelloWorld_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_HelloWorld_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -13443,16 +13443,16 @@ func _SeeOthersRedirection_Read(w wire.Value) (*SeeOthersRedirection, error) { // An error is returned if we were unable to build a Bar_HelloWorld_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_HelloWorld_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_HelloWorld_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_HelloWorld_Result) FromWire(w wire.Value) error { var err error @@ -13789,14 +13789,14 @@ type Bar_ListAndEnum_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ListAndEnum_Args) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -13838,16 +13838,16 @@ func (v *Bar_ListAndEnum_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ListAndEnum_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ListAndEnum_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ListAndEnum_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ListAndEnum_Args) FromWire(w wire.Value) error { var err error @@ -14253,14 +14253,14 @@ type Bar_ListAndEnum_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ListAndEnum_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -14300,16 +14300,16 @@ func (v *Bar_ListAndEnum_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ListAndEnum_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ListAndEnum_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ListAndEnum_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ListAndEnum_Result) FromWire(w wire.Value) error { var err error @@ -14577,14 +14577,14 @@ type Bar_MissingArg_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_MissingArg_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -14601,16 +14601,16 @@ func (v *Bar_MissingArg_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_MissingArg_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_MissingArg_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_MissingArg_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_MissingArg_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -14831,14 +14831,14 @@ type Bar_MissingArg_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_MissingArg_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -14878,16 +14878,16 @@ func (v *Bar_MissingArg_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_MissingArg_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_MissingArg_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_MissingArg_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_MissingArg_Result) FromWire(w wire.Value) error { var err error @@ -15151,14 +15151,14 @@ type Bar_NoRequest_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_NoRequest_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -15175,16 +15175,16 @@ func (v *Bar_NoRequest_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_NoRequest_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_NoRequest_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_NoRequest_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_NoRequest_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -15405,14 +15405,14 @@ type Bar_NoRequest_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_NoRequest_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -15452,16 +15452,16 @@ func (v *Bar_NoRequest_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_NoRequest_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_NoRequest_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_NoRequest_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_NoRequest_Result) FromWire(w wire.Value) error { var err error @@ -15726,14 +15726,14 @@ type Bar_Normal_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_Normal_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -15762,16 +15762,16 @@ func (v *Bar_Normal_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_Normal_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_Normal_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_Normal_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_Normal_Args) FromWire(w wire.Value) error { var err error @@ -16058,14 +16058,14 @@ type Bar_Normal_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_Normal_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -16105,16 +16105,16 @@ func (v *Bar_Normal_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_Normal_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_Normal_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_Normal_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_Normal_Result) FromWire(w wire.Value) error { var err error @@ -16380,14 +16380,14 @@ type Bar_TooManyArgs_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_TooManyArgs_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -16430,16 +16430,16 @@ func _FooStruct_Read(w wire.Value) (*foo.FooStruct, error) { // An error is returned if we were unable to build a Bar_TooManyArgs_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_TooManyArgs_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_TooManyArgs_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_TooManyArgs_Args) FromWire(w wire.Value) error { var err error @@ -16798,14 +16798,14 @@ type Bar_TooManyArgs_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_TooManyArgs_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -16859,16 +16859,16 @@ func _FooException_Read(w wire.Value) (*foo.FooException, error) { // An error is returned if we were unable to build a Bar_TooManyArgs_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_TooManyArgs_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_TooManyArgs_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_TooManyArgs_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/baz/baz/baz.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/baz/baz/baz.go index 936aeb2b6..7f8322101 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/baz/baz/baz.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/baz/baz/baz.go @@ -25,14 +25,14 @@ type AuthErr struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *AuthErr) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -58,16 +58,16 @@ func (v *AuthErr) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a AuthErr struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v AuthErr -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v AuthErr +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *AuthErr) FromWire(w wire.Value) error { var err error @@ -241,14 +241,14 @@ type BazRequest struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BazRequest) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -288,16 +288,16 @@ func (v *BazRequest) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a BazRequest struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BazRequest -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BazRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BazRequest) FromWire(w wire.Value) error { var err error @@ -557,14 +557,14 @@ type BazResponse struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BazResponse) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -590,16 +590,16 @@ func (v *BazResponse) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a BazResponse struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BazResponse -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BazResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BazResponse) FromWire(w wire.Value) error { var err error @@ -761,14 +761,14 @@ type GetProfileRequest struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *GetProfileRequest) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -800,16 +800,16 @@ func _UUID_Read(w wire.Value) (UUID, error) { // An error is returned if we were unable to build a GetProfileRequest struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v GetProfileRequest -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v GetProfileRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *GetProfileRequest) FromWire(w wire.Value) error { var err error @@ -1006,14 +1006,14 @@ func (_List_Profile_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *GetProfileResponse) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1063,16 +1063,16 @@ func _List_Profile_Read(l wire.ValueList) ([]*Profile, error) { // An error is returned if we were unable to build a GetProfileResponse struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v GetProfileResponse -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v GetProfileResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *GetProfileResponse) FromWire(w wire.Value) error { var err error @@ -1321,14 +1321,14 @@ type HeaderSchema struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *HeaderSchema) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -1345,16 +1345,16 @@ func (v *HeaderSchema) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a HeaderSchema struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v HeaderSchema -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v HeaderSchema +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *HeaderSchema) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -1465,14 +1465,14 @@ type NestedStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *NestedStruct) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -1506,16 +1506,16 @@ func (v *NestedStruct) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a NestedStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v NestedStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v NestedStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *NestedStruct) FromWire(w wire.Value) error { var err error @@ -1742,14 +1742,14 @@ type OtherAuthErr struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *OtherAuthErr) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1775,16 +1775,16 @@ func (v *OtherAuthErr) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a OtherAuthErr struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v OtherAuthErr -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v OtherAuthErr +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *OtherAuthErr) FromWire(w wire.Value) error { var err error @@ -1956,14 +1956,14 @@ type Profile struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Profile) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1998,16 +1998,16 @@ func _Recur1_Read(w wire.Value) (*Recur1, error) { // An error is returned if we were unable to build a Profile struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Profile -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Profile +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Profile) FromWire(w wire.Value) error { var err error @@ -2221,14 +2221,14 @@ func (_Map_UUID_Recur2_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Recur1) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -2291,16 +2291,16 @@ func _Map_UUID_Recur2_Read(m wire.MapItemList) (map[UUID]*Recur2, error) { // An error is returned if we were unable to build a Recur1 struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Recur1 -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Recur1 +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Recur1) FromWire(w wire.Value) error { var err error @@ -2571,14 +2571,14 @@ type Recur2 struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Recur2) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -2622,16 +2622,16 @@ func _Recur3_Read(w wire.Value) (*Recur3, error) { // An error is returned if we were unable to build a Recur2 struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Recur2 -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Recur2 +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Recur2) FromWire(w wire.Value) error { var err error @@ -2864,14 +2864,14 @@ type Recur3 struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Recur3) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -2897,16 +2897,16 @@ func (v *Recur3) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Recur3 struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Recur3 -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Recur3 +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Recur3) FromWire(w wire.Value) error { var err error @@ -3068,14 +3068,14 @@ type ServerErr struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServerErr) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -3101,16 +3101,16 @@ func (v *ServerErr) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServerErr struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServerErr -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServerErr +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServerErr) FromWire(w wire.Value) error { var err error @@ -3281,14 +3281,14 @@ type TransHeader struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *TransHeader) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -3305,16 +3305,16 @@ func (v *TransHeader) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a TransHeader struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v TransHeader -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v TransHeader +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *TransHeader) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -3426,14 +3426,14 @@ type TransStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *TransStruct) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -3482,16 +3482,16 @@ func _NestedStruct_Read(w wire.Value) (*NestedStruct, error) { // An error is returned if we were unable to build a TransStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v TransStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v TransStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *TransStruct) FromWire(w wire.Value) error { var err error @@ -3822,14 +3822,14 @@ type SimpleService_AnotherCall_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_AnotherCall_Args) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -3880,16 +3880,16 @@ func _BazRequest_Read(w wire.Value) (*BazRequest, error) { // An error is returned if we were unable to build a SimpleService_AnotherCall_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_AnotherCall_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_AnotherCall_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_AnotherCall_Args) FromWire(w wire.Value) error { var err error @@ -4308,14 +4308,14 @@ type SimpleService_AnotherCall_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_AnotherCall_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -4353,16 +4353,16 @@ func _AuthErr_Read(w wire.Value) (*AuthErr, error) { // An error is returned if we were unable to build a SimpleService_AnotherCall_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_AnotherCall_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_AnotherCall_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_AnotherCall_Result) FromWire(w wire.Value) error { var err error @@ -4575,14 +4575,14 @@ type SimpleService_Call_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Call_Args) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -4627,16 +4627,16 @@ func (v *SimpleService_Call_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Call_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Call_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Call_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Call_Args) FromWire(w wire.Value) error { var err error @@ -5029,14 +5029,14 @@ type SimpleService_Call_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Call_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -5068,16 +5068,16 @@ func (v *SimpleService_Call_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Call_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Call_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Call_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Call_Result) FromWire(w wire.Value) error { var err error @@ -5283,14 +5283,14 @@ type SimpleService_Compare_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Compare_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -5328,16 +5328,16 @@ func (v *SimpleService_Compare_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Compare_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Compare_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Compare_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Compare_Args) FromWire(w wire.Value) error { var err error @@ -5696,14 +5696,14 @@ type SimpleService_Compare_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Compare_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -5763,16 +5763,16 @@ func _OtherAuthErr_Read(w wire.Value) (*OtherAuthErr, error) { // An error is returned if we were unable to build a SimpleService_Compare_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Compare_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Compare_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Compare_Result) FromWire(w wire.Value) error { var err error @@ -6109,14 +6109,14 @@ type SimpleService_GetProfile_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_GetProfile_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -6151,16 +6151,16 @@ func _GetProfileRequest_Read(w wire.Value) (*GetProfileRequest, error) { // An error is returned if we were unable to build a SimpleService_GetProfile_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_GetProfile_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_GetProfile_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_GetProfile_Args) FromWire(w wire.Value) error { var err error @@ -6453,14 +6453,14 @@ type SimpleService_GetProfile_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_GetProfile_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -6506,16 +6506,16 @@ func _GetProfileResponse_Read(w wire.Value) (*GetProfileResponse, error) { // An error is returned if we were unable to build a SimpleService_GetProfile_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_GetProfile_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_GetProfile_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_GetProfile_Result) FromWire(w wire.Value) error { var err error @@ -6786,14 +6786,14 @@ type SimpleService_HeaderSchema_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_HeaderSchema_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -6828,16 +6828,16 @@ func _HeaderSchema_Read(w wire.Value) (*HeaderSchema, error) { // An error is returned if we were unable to build a SimpleService_HeaderSchema_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_HeaderSchema_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_HeaderSchema_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_HeaderSchema_Args) FromWire(w wire.Value) error { var err error @@ -7142,14 +7142,14 @@ type SimpleService_HeaderSchema_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_HeaderSchema_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -7197,16 +7197,16 @@ func (v *SimpleService_HeaderSchema_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_HeaderSchema_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_HeaderSchema_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_HeaderSchema_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_HeaderSchema_Result) FromWire(w wire.Value) error { var err error @@ -7530,14 +7530,14 @@ type SimpleService_Ping_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Ping_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -7554,16 +7554,16 @@ func (v *SimpleService_Ping_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Ping_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Ping_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Ping_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Ping_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -7769,14 +7769,14 @@ type SimpleService_Ping_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Ping_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -7808,16 +7808,16 @@ func (v *SimpleService_Ping_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Ping_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Ping_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Ping_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Ping_Result) FromWire(w wire.Value) error { var err error @@ -8021,14 +8021,14 @@ type SimpleService_SillyNoop_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_SillyNoop_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -8045,16 +8045,16 @@ func (v *SimpleService_SillyNoop_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_SillyNoop_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_SillyNoop_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_SillyNoop_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_SillyNoop_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -8277,14 +8277,14 @@ type SimpleService_SillyNoop_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_SillyNoop_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -8330,16 +8330,16 @@ func _ServerErr_Read(w wire.Value) (*ServerErr, error) { // An error is returned if we were unable to build a SimpleService_SillyNoop_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_SillyNoop_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_SillyNoop_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_SillyNoop_Result) FromWire(w wire.Value) error { var err error @@ -8609,14 +8609,14 @@ type SimpleService_TestUuid_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TestUuid_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -8633,16 +8633,16 @@ func (v *SimpleService_TestUuid_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_TestUuid_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TestUuid_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TestUuid_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TestUuid_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -8838,14 +8838,14 @@ type SimpleService_TestUuid_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TestUuid_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -8862,16 +8862,16 @@ func (v *SimpleService_TestUuid_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_TestUuid_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TestUuid_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TestUuid_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TestUuid_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -9000,14 +9000,14 @@ type SimpleService_Trans_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Trans_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -9050,16 +9050,16 @@ func _TransStruct_Read(w wire.Value) (*TransStruct, error) { // An error is returned if we were unable to build a SimpleService_Trans_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Trans_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Trans_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Trans_Args) FromWire(w wire.Value) error { var err error @@ -9418,14 +9418,14 @@ type SimpleService_Trans_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Trans_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -9473,16 +9473,16 @@ func (v *SimpleService_Trans_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Trans_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Trans_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Trans_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Trans_Result) FromWire(w wire.Value) error { var err error @@ -9807,14 +9807,14 @@ type SimpleService_TransHeaders_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TransHeaders_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -9849,16 +9849,16 @@ func _TransHeader_Read(w wire.Value) (*TransHeader, error) { // An error is returned if we were unable to build a SimpleService_TransHeaders_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TransHeaders_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TransHeaders_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TransHeaders_Args) FromWire(w wire.Value) error { var err error @@ -10163,14 +10163,14 @@ type SimpleService_TransHeaders_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TransHeaders_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -10218,16 +10218,16 @@ func (v *SimpleService_TransHeaders_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_TransHeaders_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TransHeaders_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TransHeaders_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TransHeaders_Result) FromWire(w wire.Value) error { var err error @@ -10551,14 +10551,14 @@ type SimpleService_TransHeadersNoReq_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TransHeadersNoReq_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -10575,16 +10575,16 @@ func (v *SimpleService_TransHeadersNoReq_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_TransHeadersNoReq_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TransHeadersNoReq_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TransHeadersNoReq_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TransHeadersNoReq_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -10805,14 +10805,14 @@ type SimpleService_TransHeadersNoReq_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TransHeadersNoReq_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -10852,16 +10852,16 @@ func (v *SimpleService_TransHeadersNoReq_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_TransHeadersNoReq_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TransHeadersNoReq_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TransHeadersNoReq_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TransHeadersNoReq_Result) FromWire(w wire.Value) error { var err error @@ -11126,14 +11126,14 @@ type SimpleService_TransHeadersType_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TransHeadersType_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -11162,16 +11162,16 @@ func (v *SimpleService_TransHeadersType_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_TransHeadersType_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TransHeadersType_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TransHeadersType_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TransHeadersType_Args) FromWire(w wire.Value) error { var err error @@ -11470,14 +11470,14 @@ type SimpleService_TransHeadersType_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_TransHeadersType_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -11525,16 +11525,16 @@ func (v *SimpleService_TransHeadersType_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_TransHeadersType_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_TransHeadersType_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_TransHeadersType_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_TransHeadersType_Result) FromWire(w wire.Value) error { var err error @@ -11858,14 +11858,14 @@ type SimpleService_UrlTest_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_UrlTest_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -11882,16 +11882,16 @@ func (v *SimpleService_UrlTest_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_UrlTest_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_UrlTest_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_UrlTest_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_UrlTest_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -12087,14 +12087,14 @@ type SimpleService_UrlTest_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_UrlTest_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -12111,16 +12111,16 @@ func (v *SimpleService_UrlTest_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_UrlTest_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_UrlTest_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_UrlTest_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_UrlTest_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/bounce/bounce/bounce.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/bounce/bounce/bounce.go index 2196bf6a4..109ea1040 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/bounce/bounce/bounce.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/bounce/bounce/bounce.go @@ -27,14 +27,14 @@ type Bounce_Bounce_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bounce_Bounce_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -60,16 +60,16 @@ func (v *Bounce_Bounce_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bounce_Bounce_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bounce_Bounce_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bounce_Bounce_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bounce_Bounce_Args) FromWire(w wire.Value) error { var err error @@ -333,14 +333,14 @@ type Bounce_Bounce_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bounce_Bounce_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -372,16 +372,16 @@ func (v *Bounce_Bounce_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bounce_Bounce_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bounce_Bounce_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bounce_Bounce_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bounce_Bounce_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/clientless/clientless/clientless.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/clientless/clientless/clientless.go index 78d51e070..b63d2761f 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/clientless/clientless/clientless.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/clientless/clientless/clientless.go @@ -26,14 +26,14 @@ type Request struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Request) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -69,16 +69,16 @@ func (v *Request) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Request struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Request -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Request +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Request) FromWire(w wire.Value) error { var err error @@ -310,14 +310,14 @@ type Response struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Response) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -353,16 +353,16 @@ func (v *Response) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Response struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Response -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Response +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Response) FromWire(w wire.Value) error { var err error @@ -587,14 +587,14 @@ type Clientless_Beta_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Clientless_Beta_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -636,16 +636,16 @@ func _Request_Read(w wire.Value) (*Request, error) { // An error is returned if we were unable to build a Clientless_Beta_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Clientless_Beta_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Clientless_Beta_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Clientless_Beta_Args) FromWire(w wire.Value) error { var err error @@ -973,14 +973,14 @@ type Clientless_Beta_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Clientless_Beta_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1018,16 +1018,16 @@ func _Response_Read(w wire.Value) (*Response, error) { // An error is returned if we were unable to build a Clientless_Beta_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Clientless_Beta_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Clientless_Beta_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Clientless_Beta_Result) FromWire(w wire.Value) error { var err error @@ -1239,14 +1239,14 @@ type Clientless_ClientlessArgWithHeaders_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Clientless_ClientlessArgWithHeaders_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -1280,16 +1280,16 @@ func (v *Clientless_ClientlessArgWithHeaders_Args) ToWire() (wire.Value, error) // An error is returned if we were unable to build a Clientless_ClientlessArgWithHeaders_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Clientless_ClientlessArgWithHeaders_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Clientless_ClientlessArgWithHeaders_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Clientless_ClientlessArgWithHeaders_Args) FromWire(w wire.Value) error { var err error @@ -1611,14 +1611,14 @@ type Clientless_ClientlessArgWithHeaders_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Clientless_ClientlessArgWithHeaders_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1650,16 +1650,16 @@ func (v *Clientless_ClientlessArgWithHeaders_Result) ToWire() (wire.Value, error // An error is returned if we were unable to build a Clientless_ClientlessArgWithHeaders_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Clientless_ClientlessArgWithHeaders_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Clientless_ClientlessArgWithHeaders_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Clientless_ClientlessArgWithHeaders_Result) FromWire(w wire.Value) error { var err error @@ -1864,14 +1864,14 @@ type Clientless_EmptyclientlessRequest_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Clientless_EmptyclientlessRequest_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1899,16 +1899,16 @@ func (v *Clientless_EmptyclientlessRequest_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Clientless_EmptyclientlessRequest_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Clientless_EmptyclientlessRequest_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Clientless_EmptyclientlessRequest_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Clientless_EmptyclientlessRequest_Args) FromWire(w wire.Value) error { var err error @@ -2166,14 +2166,14 @@ type Clientless_EmptyclientlessRequest_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Clientless_EmptyclientlessRequest_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -2190,16 +2190,16 @@ func (v *Clientless_EmptyclientlessRequest_Result) ToWire() (wire.Value, error) // An error is returned if we were unable to build a Clientless_EmptyclientlessRequest_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Clientless_EmptyclientlessRequest_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Clientless_EmptyclientlessRequest_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Clientless_EmptyclientlessRequest_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/contacts/contacts/contacts.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/contacts/contacts/contacts.go index 41984a4b8..3671161ef 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/contacts/contacts/contacts.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/contacts/contacts/contacts.go @@ -24,14 +24,14 @@ type BadRequest struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BadRequest) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -48,16 +48,16 @@ func (v *BadRequest) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a BadRequest struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BadRequest -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BadRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BadRequest) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -207,14 +207,14 @@ func (_List_ContactFragment_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Contact) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -280,16 +280,16 @@ func _ContactAttributes_Read(w wire.Value) (*ContactAttributes, error) { // An error is returned if we were unable to build a Contact struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Contact -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Contact +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Contact) FromWire(w wire.Value) error { var err error @@ -603,14 +603,14 @@ type ContactAttributes struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ContactAttributes) ToWire() (wire.Value, error) { var ( fields [13]wire.Field @@ -734,16 +734,16 @@ func (v *ContactAttributes) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ContactAttributes struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ContactAttributes -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ContactAttributes +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ContactAttributes) FromWire(w wire.Value) error { var err error @@ -1600,14 +1600,14 @@ type ContactFragment struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ContactFragment) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -1649,16 +1649,16 @@ func _ContactFragmentType_Read(w wire.Value) (ContactFragmentType, error) { // An error is returned if we were unable to build a ContactFragment struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ContactFragment -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ContactFragment +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ContactFragment) FromWire(w wire.Value) error { var err error @@ -1942,14 +1942,14 @@ type NotFound struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *NotFound) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -1966,16 +1966,16 @@ func (v *NotFound) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a NotFound struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v NotFound -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v NotFound +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *NotFound) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -2125,14 +2125,14 @@ func (_List_Contact_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SaveContactsRequest) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -2189,16 +2189,16 @@ func _List_Contact_Read(l wire.ValueList) ([]*Contact, error) { // An error is returned if we were unable to build a SaveContactsRequest struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SaveContactsRequest -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SaveContactsRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SaveContactsRequest) FromWire(w wire.Value) error { var err error @@ -2496,14 +2496,14 @@ type SaveContactsResponse struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SaveContactsResponse) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -2520,16 +2520,16 @@ func (v *SaveContactsResponse) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SaveContactsResponse struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SaveContactsResponse -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SaveContactsResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SaveContactsResponse) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -2690,14 +2690,14 @@ type Contacts_SaveContacts_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Contacts_SaveContacts_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -2732,16 +2732,16 @@ func _SaveContactsRequest_Read(w wire.Value) (*SaveContactsRequest, error) { // An error is returned if we were unable to build a Contacts_SaveContacts_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Contacts_SaveContacts_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Contacts_SaveContacts_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Contacts_SaveContacts_Args) FromWire(w wire.Value) error { var err error @@ -3046,14 +3046,14 @@ type Contacts_SaveContacts_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Contacts_SaveContacts_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -3119,16 +3119,16 @@ func _NotFound_Read(w wire.Value) (*NotFound, error) { // An error is returned if we were unable to build a Contacts_SaveContacts_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Contacts_SaveContacts_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Contacts_SaveContacts_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Contacts_SaveContacts_Result) FromWire(w wire.Value) error { var err error @@ -3470,14 +3470,14 @@ type Contacts_TestUrlUrl_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Contacts_TestUrlUrl_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -3494,16 +3494,16 @@ func (v *Contacts_TestUrlUrl_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Contacts_TestUrlUrl_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Contacts_TestUrlUrl_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Contacts_TestUrlUrl_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Contacts_TestUrlUrl_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -3709,14 +3709,14 @@ type Contacts_TestUrlUrl_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Contacts_TestUrlUrl_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -3748,16 +3748,16 @@ func (v *Contacts_TestUrlUrl_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Contacts_TestUrlUrl_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Contacts_TestUrlUrl_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Contacts_TestUrlUrl_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Contacts_TestUrlUrl_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/foo/base/base/base.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/foo/base/base/base.go index 6a6319ad1..b53de2e66 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/foo/base/base/base.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/foo/base/base/base.go @@ -24,14 +24,14 @@ type Message struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Message) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -57,16 +57,16 @@ func (v *Message) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Message struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Message -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Message +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Message) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/foo/foo/foo.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/foo/foo/foo.go index 2fe5c0dfc..c5c2ee49d 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/foo/foo/foo.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/foo/foo/foo.go @@ -26,14 +26,14 @@ type FooException struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *FooException) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -59,16 +59,16 @@ func (v *FooException) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a FooException struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v FooException -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v FooException +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *FooException) FromWire(w wire.Value) error { var err error @@ -240,14 +240,14 @@ type FooName struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *FooName) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -275,16 +275,16 @@ func (v *FooName) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a FooName struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v FooName -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v FooName +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *FooName) FromWire(w wire.Value) error { var err error @@ -501,14 +501,14 @@ func (_Map_String_String_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *FooStruct) ToWire() (wire.Value, error) { var ( fields [7]wire.Field @@ -616,16 +616,16 @@ func _Message_Read(w wire.Value) (*base.Message, error) { // An error is returned if we were unable to build a FooStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v FooStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v FooStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *FooStruct) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/googlenow/googlenow/googlenow.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/googlenow/googlenow/googlenow.go index 83aa729bd..5159ffae5 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/googlenow/googlenow/googlenow.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/googlenow/googlenow/googlenow.go @@ -27,14 +27,14 @@ type GoogleNow_AddCredentials_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *GoogleNow_AddCredentials_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -60,16 +60,16 @@ func (v *GoogleNow_AddCredentials_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a GoogleNow_AddCredentials_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v GoogleNow_AddCredentials_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v GoogleNow_AddCredentials_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *GoogleNow_AddCredentials_Args) FromWire(w wire.Value) error { var err error @@ -323,14 +323,14 @@ type GoogleNow_AddCredentials_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *GoogleNow_AddCredentials_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -347,16 +347,16 @@ func (v *GoogleNow_AddCredentials_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a GoogleNow_AddCredentials_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v GoogleNow_AddCredentials_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v GoogleNow_AddCredentials_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *GoogleNow_AddCredentials_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -483,14 +483,14 @@ type GoogleNow_CheckCredentials_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *GoogleNow_CheckCredentials_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -507,16 +507,16 @@ func (v *GoogleNow_CheckCredentials_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a GoogleNow_CheckCredentials_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v GoogleNow_CheckCredentials_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v GoogleNow_CheckCredentials_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *GoogleNow_CheckCredentials_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -712,14 +712,14 @@ type GoogleNow_CheckCredentials_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *GoogleNow_CheckCredentials_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -736,16 +736,16 @@ func (v *GoogleNow_CheckCredentials_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a GoogleNow_CheckCredentials_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v GoogleNow_CheckCredentials_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v GoogleNow_CheckCredentials_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *GoogleNow_CheckCredentials_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/models/meta/meta.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/models/meta/meta.go index 0c5f9cfa0..65ebdf150 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/models/meta/meta.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/models/meta/meta.go @@ -26,14 +26,14 @@ type Dgx struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Dgx) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -74,16 +74,16 @@ func (v *Dgx) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Dgx struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Dgx -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Dgx +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Dgx) FromWire(w wire.Value) error { var err error @@ -360,14 +360,14 @@ type Fred struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Fred) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -400,16 +400,16 @@ func (v *Fred) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Fred struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Fred -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Fred +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Fred) FromWire(w wire.Value) error { var err error @@ -621,14 +621,14 @@ type Garply struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Garply) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -664,16 +664,16 @@ func (v *Garply) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Garply struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Garply -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Garply +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Garply) FromWire(w wire.Value) error { var err error @@ -905,14 +905,14 @@ type Grault struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Grault) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -948,16 +948,16 @@ func (v *Grault) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Grault struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Grault -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Grault +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Grault) FromWire(w wire.Value) error { var err error @@ -1178,14 +1178,14 @@ type Thud struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Thud) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1213,16 +1213,16 @@ func (v *Thud) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Thud struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Thud -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Thud +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Thud) FromWire(w wire.Value) error { var err error @@ -1388,14 +1388,14 @@ type TokenOnly struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *TokenOnly) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1421,16 +1421,16 @@ func (v *TokenOnly) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a TokenOnly struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v TokenOnly -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v TokenOnly +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *TokenOnly) FromWire(w wire.Value) error { var err error @@ -1592,14 +1592,14 @@ type UUIDOnly struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *UUIDOnly) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1625,16 +1625,16 @@ func (v *UUIDOnly) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a UUIDOnly struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v UUIDOnly -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v UUIDOnly +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *UUIDOnly) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/multi/multi/multi.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/multi/multi/multi.go index 0eb0fd252..d8a9090d3 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/multi/multi/multi.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/multi/multi/multi.go @@ -26,14 +26,14 @@ type ServiceAFront_Hello_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServiceAFront_Hello_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -50,16 +50,16 @@ func (v *ServiceAFront_Hello_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServiceAFront_Hello_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServiceAFront_Hello_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServiceAFront_Hello_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServiceAFront_Hello_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -265,14 +265,14 @@ type ServiceAFront_Hello_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServiceAFront_Hello_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -304,16 +304,16 @@ func (v *ServiceAFront_Hello_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServiceAFront_Hello_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServiceAFront_Hello_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServiceAFront_Hello_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServiceAFront_Hello_Result) FromWire(w wire.Value) error { var err error @@ -531,14 +531,14 @@ type ServiceBFront_Hello_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServiceBFront_Hello_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -555,16 +555,16 @@ func (v *ServiceBFront_Hello_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServiceBFront_Hello_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServiceBFront_Hello_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServiceBFront_Hello_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServiceBFront_Hello_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -770,14 +770,14 @@ type ServiceBFront_Hello_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServiceBFront_Hello_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -809,16 +809,16 @@ func (v *ServiceBFront_Hello_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServiceBFront_Hello_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServiceBFront_Hello_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServiceBFront_Hello_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServiceBFront_Hello_Result) FromWire(w wire.Value) error { var err error @@ -1026,14 +1026,14 @@ type ServiceCFront_Hello_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServiceCFront_Hello_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -1050,16 +1050,16 @@ func (v *ServiceCFront_Hello_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServiceCFront_Hello_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServiceCFront_Hello_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServiceCFront_Hello_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServiceCFront_Hello_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -1265,14 +1265,14 @@ type ServiceCFront_Hello_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServiceCFront_Hello_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1304,16 +1304,16 @@ func (v *ServiceCFront_Hello_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServiceCFront_Hello_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServiceCFront_Hello_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServiceCFront_Hello_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServiceCFront_Hello_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/tchannel/baz/baz/baz.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/tchannel/baz/baz/baz.go index 9ce0e679b..57d2e4fb5 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/tchannel/baz/baz/baz.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/tchannel/baz/baz/baz.go @@ -25,14 +25,14 @@ type AuthErr struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *AuthErr) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -58,16 +58,16 @@ func (v *AuthErr) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a AuthErr struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v AuthErr -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v AuthErr +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *AuthErr) FromWire(w wire.Value) error { var err error @@ -241,14 +241,14 @@ type BazRequest struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BazRequest) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -288,16 +288,16 @@ func (v *BazRequest) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a BazRequest struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BazRequest -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BazRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BazRequest) FromWire(w wire.Value) error { var err error @@ -557,14 +557,14 @@ type BazResponse struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BazResponse) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -590,16 +590,16 @@ func (v *BazResponse) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a BazResponse struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BazResponse -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BazResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BazResponse) FromWire(w wire.Value) error { var err error @@ -761,14 +761,14 @@ type ServerErr struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ServerErr) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -794,16 +794,16 @@ func (v *ServerErr) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ServerErr struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ServerErr -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ServerErr +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ServerErr) FromWire(w wire.Value) error { var err error @@ -1028,14 +1028,14 @@ type SimpleService_AnotherCall_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_AnotherCall_Args) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -1092,16 +1092,16 @@ func _UUID_Read(w wire.Value) (UUID, error) { // An error is returned if we were unable to build a SimpleService_AnotherCall_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_AnotherCall_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_AnotherCall_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_AnotherCall_Args) FromWire(w wire.Value) error { var err error @@ -1526,14 +1526,14 @@ type SimpleService_AnotherCall_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_AnotherCall_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -1571,16 +1571,16 @@ func _AuthErr_Read(w wire.Value) (*AuthErr, error) { // An error is returned if we were unable to build a SimpleService_AnotherCall_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_AnotherCall_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_AnotherCall_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_AnotherCall_Result) FromWire(w wire.Value) error { var err error @@ -1793,14 +1793,14 @@ type SimpleService_Call_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Call_Args) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -1845,16 +1845,16 @@ func (v *SimpleService_Call_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Call_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Call_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Call_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Call_Args) FromWire(w wire.Value) error { var err error @@ -2247,14 +2247,14 @@ type SimpleService_Call_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Call_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -2286,16 +2286,16 @@ func (v *SimpleService_Call_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Call_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Call_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Call_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Call_Result) FromWire(w wire.Value) error { var err error @@ -2501,14 +2501,14 @@ type SimpleService_Compare_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Compare_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -2546,16 +2546,16 @@ func (v *SimpleService_Compare_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Compare_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Compare_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Compare_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Compare_Args) FromWire(w wire.Value) error { var err error @@ -2902,14 +2902,14 @@ type SimpleService_Compare_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Compare_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -2955,16 +2955,16 @@ func _BazResponse_Read(w wire.Value) (*BazResponse, error) { // An error is returned if we were unable to build a SimpleService_Compare_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Compare_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Compare_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Compare_Result) FromWire(w wire.Value) error { var err error @@ -3235,14 +3235,14 @@ type SimpleService_Echo_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Echo_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -3268,16 +3268,16 @@ func (v *SimpleService_Echo_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Echo_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Echo_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Echo_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Echo_Args) FromWire(w wire.Value) error { var err error @@ -3541,14 +3541,14 @@ type SimpleService_Echo_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Echo_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -3580,16 +3580,16 @@ func (v *SimpleService_Echo_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Echo_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Echo_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Echo_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Echo_Result) FromWire(w wire.Value) error { var err error @@ -3807,14 +3807,14 @@ type SimpleService_Ping_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Ping_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -3831,16 +3831,16 @@ func (v *SimpleService_Ping_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Ping_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Ping_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Ping_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Ping_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -4046,14 +4046,14 @@ type SimpleService_Ping_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_Ping_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -4085,16 +4085,16 @@ func (v *SimpleService_Ping_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_Ping_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_Ping_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_Ping_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_Ping_Result) FromWire(w wire.Value) error { var err error @@ -4298,14 +4298,14 @@ type SimpleService_SillyNoop_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_SillyNoop_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -4322,16 +4322,16 @@ func (v *SimpleService_SillyNoop_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_SillyNoop_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_SillyNoop_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_SillyNoop_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_SillyNoop_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -4554,14 +4554,14 @@ type SimpleService_SillyNoop_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_SillyNoop_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -4607,16 +4607,16 @@ func _ServerErr_Read(w wire.Value) (*ServerErr, error) { // An error is returned if we were unable to build a SimpleService_SillyNoop_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_SillyNoop_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_SillyNoop_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_SillyNoop_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/tchannel/echo/echo/echo.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/tchannel/echo/echo/echo.go index ef55415d0..25f07523a 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/tchannel/echo/echo/echo.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/tchannel/echo/echo/echo.go @@ -27,14 +27,14 @@ type Echo_Echo_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_Echo_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -60,16 +60,16 @@ func (v *Echo_Echo_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_Echo_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_Echo_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_Echo_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_Echo_Args) FromWire(w wire.Value) error { var err error @@ -333,14 +333,14 @@ type Echo_Echo_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_Echo_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -372,16 +372,16 @@ func (v *Echo_Echo_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_Echo_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_Echo_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_Echo_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_Echo_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/tchannel/quux/quux/quux.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/tchannel/quux/quux/quux.go index 2e2a734a4..ebc47b003 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/tchannel/quux/quux/quux.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/tchannel/quux/quux/quux.go @@ -27,14 +27,14 @@ type SimpleService_EchoString_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_EchoString_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -60,16 +60,16 @@ func (v *SimpleService_EchoString_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_EchoString_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_EchoString_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_EchoString_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_EchoString_Args) FromWire(w wire.Value) error { var err error @@ -333,14 +333,14 @@ type SimpleService_EchoString_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *SimpleService_EchoString_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -372,16 +372,16 @@ func (v *SimpleService_EchoString_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a SimpleService_EchoString_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v SimpleService_EchoString_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v SimpleService_EchoString_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *SimpleService_EchoString_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/withexceptions/withexceptions/withexceptions.go b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/withexceptions/withexceptions/withexceptions.go index e660a22bb..22430fa22 100644 --- a/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/withexceptions/withexceptions/withexceptions.go +++ b/examples/example-gateway/build/gen-code/endpoints-idl/endpoints/withexceptions/withexceptions/withexceptions.go @@ -25,14 +25,14 @@ type EndpointExceptionType1 struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *EndpointExceptionType1) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -58,16 +58,16 @@ func (v *EndpointExceptionType1) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a EndpointExceptionType1 struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v EndpointExceptionType1 -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v EndpointExceptionType1 +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *EndpointExceptionType1) FromWire(w wire.Value) error { var err error @@ -239,14 +239,14 @@ type EndpointExceptionType2 struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *EndpointExceptionType2) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -272,16 +272,16 @@ func (v *EndpointExceptionType2) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a EndpointExceptionType2 struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v EndpointExceptionType2 -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v EndpointExceptionType2 +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *EndpointExceptionType2) FromWire(w wire.Value) error { var err error @@ -452,14 +452,14 @@ type Response struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Response) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -476,16 +476,16 @@ func (v *Response) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Response struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Response -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Response +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Response) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -597,14 +597,14 @@ type WithExceptions_Func1_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *WithExceptions_Func1_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -621,16 +621,16 @@ func (v *WithExceptions_Func1_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a WithExceptions_Func1_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v WithExceptions_Func1_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v WithExceptions_Func1_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *WithExceptions_Func1_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -863,14 +863,14 @@ type WithExceptions_Func1_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *WithExceptions_Func1_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -936,16 +936,16 @@ func _EndpointExceptionType2_Read(w wire.Value) (*EndpointExceptionType2, error) // An error is returned if we were unable to build a WithExceptions_Func1_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v WithExceptions_Func1_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v WithExceptions_Func1_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *WithExceptions_Func1_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/selective-gateway/build/gen-code/clients/bar/bar/bar.go b/examples/selective-gateway/build/gen-code/clients/bar/bar/bar.go index 4fff33491..58e436a48 100644 --- a/examples/selective-gateway/build/gen-code/clients/bar/bar/bar.go +++ b/examples/selective-gateway/build/gen-code/clients/bar/bar/bar.go @@ -31,14 +31,14 @@ type BarException struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } -// -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarException) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -64,16 +64,16 @@ func (v *BarException) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a BarException struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarException -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarException +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarException) FromWire(w wire.Value) error { var err error @@ -250,14 +250,14 @@ type BarRequest struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarRequest) ToWire() (wire.Value, error) { var ( fields [6]wire.Field @@ -338,16 +338,16 @@ func _Long_Read(w wire.Value) (Long, error) { // An error is returned if we were unable to build a BarRequest struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarRequest -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarRequest) FromWire(w wire.Value) error { var err error @@ -781,14 +781,14 @@ type BarRequestRecur struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarRequestRecur) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -828,16 +828,16 @@ func _BarRequestRecur_Read(w wire.Value) (*BarRequestRecur, error) { // An error is returned if we were unable to build a BarRequestRecur struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarRequestRecur -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarRequestRecur +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarRequestRecur) FromWire(w wire.Value) error { var err error @@ -1132,14 +1132,14 @@ func (_Map_String_I32_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarResponse) ToWire() (wire.Value, error) { var ( fields [7]wire.Field @@ -1282,16 +1282,16 @@ func _BarResponse_Read(w wire.Value) (*BarResponse, error) { // An error is returned if we were unable to build a BarResponse struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarResponse -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarResponse) FromWire(w wire.Value) error { var err error @@ -1994,14 +1994,14 @@ func (_List_String_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *BarResponseRecur) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -2052,16 +2052,16 @@ func _List_String_Read(l wire.ValueList) ([]string, error) { // An error is returned if we were unable to build a BarResponseRecur struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v BarResponseRecur -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v BarResponseRecur +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *BarResponseRecur) FromWire(w wire.Value) error { var err error @@ -2358,8 +2358,8 @@ func DemoType_Values() []DemoType { // UnmarshalText tries to decode DemoType from a byte slice // containing its name. // -// var v DemoType -// err := v.UnmarshalText([]byte("FIRST")) +// var v DemoType +// err := v.UnmarshalText([]byte("FIRST")) func (v *DemoType) UnmarshalText(value []byte) error { switch s := string(value); s { case "FIRST": @@ -2416,10 +2416,10 @@ func (v DemoType) Ptr() *DemoType { // Encode encodes DemoType directly to bytes. // -// sWriter := BinaryStreamer.Writer(writer) +// sWriter := BinaryStreamer.Writer(writer) // -// var v DemoType -// return v.Encode(sWriter) +// var v DemoType +// return v.Encode(sWriter) func (v DemoType) Encode(sw stream.Writer) error { return sw.WriteInt32(int32(v)) } @@ -2436,16 +2436,16 @@ func (v DemoType) ToWire() (wire.Value, error) { // FromWire deserializes DemoType from its Thrift-level // representation. // -// x, err := binaryProtocol.Decode(reader, wire.TI32) -// if err != nil { -// return DemoType(0), err -// } +// x, err := binaryProtocol.Decode(reader, wire.TI32) +// if err != nil { +// return DemoType(0), err +// } // -// var v DemoType -// if err := v.FromWire(x); err != nil { -// return DemoType(0), err -// } -// return v, nil +// var v DemoType +// if err := v.FromWire(x); err != nil { +// return DemoType(0), err +// } +// return v, nil func (v *DemoType) FromWire(w wire.Value) error { *v = (DemoType)(w.GetI32()) return nil @@ -2453,13 +2453,13 @@ func (v *DemoType) FromWire(w wire.Value) error { // Decode reads off the encoded DemoType directly off of the wire. // -// sReader := BinaryStreamer.Reader(reader) +// sReader := BinaryStreamer.Reader(reader) // -// var v DemoType -// if err := v.Decode(sReader); err != nil { -// return DemoType(0), err -// } -// return v, nil +// var v DemoType +// if err := v.Decode(sReader); err != nil { +// return DemoType(0), err +// } +// return v, nil func (v *DemoType) Decode(sr stream.Reader) error { i, err := sr.ReadInt32() if err != nil { @@ -2557,8 +2557,8 @@ func Fruit_Values() []Fruit { // UnmarshalText tries to decode Fruit from a byte slice // containing its name. // -// var v Fruit -// err := v.UnmarshalText([]byte("APPLE")) +// var v Fruit +// err := v.UnmarshalText([]byte("APPLE")) func (v *Fruit) UnmarshalText(value []byte) error { switch s := string(value); s { case "APPLE": @@ -2615,10 +2615,10 @@ func (v Fruit) Ptr() *Fruit { // Encode encodes Fruit directly to bytes. // -// sWriter := BinaryStreamer.Writer(writer) +// sWriter := BinaryStreamer.Writer(writer) // -// var v Fruit -// return v.Encode(sWriter) +// var v Fruit +// return v.Encode(sWriter) func (v Fruit) Encode(sw stream.Writer) error { return sw.WriteInt32(int32(v)) } @@ -2635,16 +2635,16 @@ func (v Fruit) ToWire() (wire.Value, error) { // FromWire deserializes Fruit from its Thrift-level // representation. // -// x, err := binaryProtocol.Decode(reader, wire.TI32) -// if err != nil { -// return Fruit(0), err -// } +// x, err := binaryProtocol.Decode(reader, wire.TI32) +// if err != nil { +// return Fruit(0), err +// } // -// var v Fruit -// if err := v.FromWire(x); err != nil { -// return Fruit(0), err -// } -// return v, nil +// var v Fruit +// if err := v.FromWire(x); err != nil { +// return Fruit(0), err +// } +// return v, nil func (v *Fruit) FromWire(w wire.Value) error { *v = (Fruit)(w.GetI32()) return nil @@ -2652,13 +2652,13 @@ func (v *Fruit) FromWire(w wire.Value) error { // Decode reads off the encoded Fruit directly off of the wire. // -// sReader := BinaryStreamer.Reader(reader) +// sReader := BinaryStreamer.Reader(reader) // -// var v Fruit -// if err := v.Decode(sReader); err != nil { -// return Fruit(0), err -// } -// return v, nil +// var v Fruit +// if err := v.Decode(sReader); err != nil { +// return Fruit(0), err +// } +// return v, nil func (v *Fruit) Decode(sr stream.Reader) error { i, err := sr.ReadInt32() if err != nil { @@ -2797,14 +2797,14 @@ type OptionalParamsStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *OptionalParamsStruct) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -2832,16 +2832,16 @@ func (v *OptionalParamsStruct) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a OptionalParamsStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v OptionalParamsStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v OptionalParamsStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *OptionalParamsStruct) FromWire(w wire.Value) error { var err error @@ -3017,14 +3017,14 @@ type ParamsStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *ParamsStruct) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -3050,16 +3050,16 @@ func (v *ParamsStruct) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a ParamsStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v ParamsStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v ParamsStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *ParamsStruct) FromWire(w wire.Value) error { var err error @@ -3224,14 +3224,14 @@ type QueryParamsOptsStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *QueryParamsOptsStruct) ToWire() (wire.Value, error) { var ( fields [4]wire.Field @@ -3281,16 +3281,16 @@ func (v *QueryParamsOptsStruct) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a QueryParamsOptsStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v QueryParamsOptsStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v QueryParamsOptsStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *QueryParamsOptsStruct) FromWire(w wire.Value) error { var err error @@ -3621,14 +3621,14 @@ type QueryParamsStruct struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *QueryParamsStruct) ToWire() (wire.Value, error) { var ( fields [5]wire.Field @@ -3685,16 +3685,16 @@ func (v *QueryParamsStruct) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a QueryParamsStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v QueryParamsStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v QueryParamsStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *QueryParamsStruct) FromWire(w wire.Value) error { var err error @@ -4078,14 +4078,14 @@ type RequestWithDuplicateType struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *RequestWithDuplicateType) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -4127,16 +4127,16 @@ func _BarRequest_Read(w wire.Value) (*BarRequest, error) { // An error is returned if we were unable to build a RequestWithDuplicateType struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v RequestWithDuplicateType -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v RequestWithDuplicateType +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *RequestWithDuplicateType) FromWire(w wire.Value) error { var err error @@ -4666,14 +4666,14 @@ type Bar_ArgNotStruct_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgNotStruct_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -4699,16 +4699,16 @@ func (v *Bar_ArgNotStruct_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgNotStruct_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgNotStruct_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgNotStruct_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgNotStruct_Args) FromWire(w wire.Value) error { var err error @@ -4977,14 +4977,14 @@ type Bar_ArgNotStruct_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgNotStruct_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -5022,16 +5022,16 @@ func _BarException_Read(w wire.Value) (*BarException, error) { // An error is returned if we were unable to build a Bar_ArgNotStruct_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgNotStruct_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgNotStruct_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgNotStruct_Result) FromWire(w wire.Value) error { var err error @@ -5244,14 +5244,14 @@ type Bar_ArgWithHeaders_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithHeaders_Args) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -5299,16 +5299,16 @@ func _OptionalParamsStruct_Read(w wire.Value) (*OptionalParamsStruct, error) { // An error is returned if we were unable to build a Bar_ArgWithHeaders_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithHeaders_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithHeaders_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithHeaders_Args) FromWire(w wire.Value) error { var err error @@ -5690,14 +5690,14 @@ type Bar_ArgWithHeaders_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithHeaders_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -5729,16 +5729,16 @@ func (v *Bar_ArgWithHeaders_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithHeaders_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithHeaders_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithHeaders_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithHeaders_Result) FromWire(w wire.Value) error { var err error @@ -6022,14 +6022,14 @@ func (_List_DemoType_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithManyQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [28]wire.Field @@ -6312,16 +6312,16 @@ func _List_DemoType_Read(l wire.ValueList) ([]DemoType, error) { // An error is returned if we were unable to build a Bar_ArgWithManyQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithManyQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithManyQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithManyQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -8359,14 +8359,14 @@ type Bar_ArgWithManyQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithManyQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -8398,16 +8398,16 @@ func (v *Bar_ArgWithManyQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithManyQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithManyQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithManyQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithManyQueryParams_Result) FromWire(w wire.Value) error { var err error @@ -8615,14 +8615,14 @@ type Bar_ArgWithNearDupQueryParams_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithNearDupQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [4]wire.Field @@ -8672,16 +8672,16 @@ func (v *Bar_ArgWithNearDupQueryParams_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithNearDupQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithNearDupQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithNearDupQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithNearDupQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -9119,14 +9119,14 @@ type Bar_ArgWithNearDupQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithNearDupQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -9158,16 +9158,16 @@ func (v *Bar_ArgWithNearDupQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithNearDupQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithNearDupQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithNearDupQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithNearDupQueryParams_Result) FromWire(w wire.Value) error { var err error @@ -9373,14 +9373,14 @@ type Bar_ArgWithNestedQueryParams_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithNestedQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -9429,16 +9429,16 @@ func _QueryParamsOptsStruct_Read(w wire.Value) (*QueryParamsOptsStruct, error) { // An error is returned if we were unable to build a Bar_ArgWithNestedQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithNestedQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithNestedQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithNestedQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -9776,14 +9776,14 @@ type Bar_ArgWithNestedQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithNestedQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -9815,16 +9815,16 @@ func (v *Bar_ArgWithNestedQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithNestedQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithNestedQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithNestedQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithNestedQueryParams_Result) FromWire(w wire.Value) error { var err error @@ -10030,14 +10030,14 @@ type Bar_ArgWithParams_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithParams_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -10077,16 +10077,16 @@ func _ParamsStruct_Read(w wire.Value) (*ParamsStruct, error) { // An error is returned if we were unable to build a Bar_ArgWithParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithParams_Args) FromWire(w wire.Value) error { var err error @@ -10410,14 +10410,14 @@ type Bar_ArgWithParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -10449,16 +10449,16 @@ func (v *Bar_ArgWithParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithParams_Result) FromWire(w wire.Value) error { var err error @@ -10664,14 +10664,14 @@ type Bar_ArgWithParamsAndDuplicateFields_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithParamsAndDuplicateFields_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -10713,16 +10713,16 @@ func _RequestWithDuplicateType_Read(w wire.Value) (*RequestWithDuplicateType, er // An error is returned if we were unable to build a Bar_ArgWithParamsAndDuplicateFields_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithParamsAndDuplicateFields_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithParamsAndDuplicateFields_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithParamsAndDuplicateFields_Args) FromWire(w wire.Value) error { var err error @@ -11052,14 +11052,14 @@ type Bar_ArgWithParamsAndDuplicateFields_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithParamsAndDuplicateFields_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -11091,16 +11091,16 @@ func (v *Bar_ArgWithParamsAndDuplicateFields_Result) ToWire() (wire.Value, error // An error is returned if we were unable to build a Bar_ArgWithParamsAndDuplicateFields_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithParamsAndDuplicateFields_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithParamsAndDuplicateFields_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithParamsAndDuplicateFields_Result) FromWire(w wire.Value) error { var err error @@ -11305,14 +11305,14 @@ type Bar_ArgWithQueryHeader_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithQueryHeader_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -11340,16 +11340,16 @@ func (v *Bar_ArgWithQueryHeader_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithQueryHeader_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithQueryHeader_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithQueryHeader_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithQueryHeader_Args) FromWire(w wire.Value) error { var err error @@ -11617,14 +11617,14 @@ type Bar_ArgWithQueryHeader_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithQueryHeader_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -11656,16 +11656,16 @@ func (v *Bar_ArgWithQueryHeader_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithQueryHeader_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithQueryHeader_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithQueryHeader_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithQueryHeader_Result) FromWire(w wire.Value) error { var err error @@ -11899,14 +11899,14 @@ func (_List_Byte_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [4]wire.Field @@ -11973,16 +11973,16 @@ func _List_Byte_Read(l wire.ValueList) ([]int8, error) { // An error is returned if we were unable to build a Bar_ArgWithQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -12491,14 +12491,14 @@ type Bar_ArgWithQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ArgWithQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -12530,16 +12530,16 @@ func (v *Bar_ArgWithQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ArgWithQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ArgWithQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ArgWithQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ArgWithQueryParams_Result) FromWire(w wire.Value) error { var err error @@ -12744,14 +12744,14 @@ type Bar_DeleteFoo_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteFoo_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -12777,16 +12777,16 @@ func (v *Bar_DeleteFoo_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteFoo_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteFoo_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteFoo_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteFoo_Args) FromWire(w wire.Value) error { var err error @@ -13040,14 +13040,14 @@ type Bar_DeleteFoo_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteFoo_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -13064,16 +13064,16 @@ func (v *Bar_DeleteFoo_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteFoo_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteFoo_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteFoo_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteFoo_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -13202,14 +13202,14 @@ type Bar_DeleteWithQueryParams_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteWithQueryParams_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -13243,16 +13243,16 @@ func (v *Bar_DeleteWithQueryParams_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteWithQueryParams_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteWithQueryParams_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteWithQueryParams_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteWithQueryParams_Args) FromWire(w wire.Value) error { var err error @@ -13564,14 +13564,14 @@ type Bar_DeleteWithQueryParams_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_DeleteWithQueryParams_Result) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -13588,16 +13588,16 @@ func (v *Bar_DeleteWithQueryParams_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_DeleteWithQueryParams_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_DeleteWithQueryParams_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_DeleteWithQueryParams_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_DeleteWithQueryParams_Result) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -13724,14 +13724,14 @@ type Bar_HelloWorld_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_HelloWorld_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -13748,16 +13748,16 @@ func (v *Bar_HelloWorld_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_HelloWorld_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_HelloWorld_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_HelloWorld_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_HelloWorld_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -13978,14 +13978,14 @@ type Bar_HelloWorld_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_HelloWorld_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -14025,16 +14025,16 @@ func (v *Bar_HelloWorld_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_HelloWorld_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_HelloWorld_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_HelloWorld_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_HelloWorld_Result) FromWire(w wire.Value) error { var err error @@ -14305,14 +14305,14 @@ type Bar_ListAndEnum_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ListAndEnum_Args) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -14354,16 +14354,16 @@ func (v *Bar_ListAndEnum_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ListAndEnum_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ListAndEnum_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ListAndEnum_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ListAndEnum_Args) FromWire(w wire.Value) error { var err error @@ -14769,14 +14769,14 @@ type Bar_ListAndEnum_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_ListAndEnum_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -14816,16 +14816,16 @@ func (v *Bar_ListAndEnum_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_ListAndEnum_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_ListAndEnum_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_ListAndEnum_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_ListAndEnum_Result) FromWire(w wire.Value) error { var err error @@ -15093,14 +15093,14 @@ type Bar_MissingArg_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_MissingArg_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -15117,16 +15117,16 @@ func (v *Bar_MissingArg_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_MissingArg_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_MissingArg_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_MissingArg_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_MissingArg_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -15347,14 +15347,14 @@ type Bar_MissingArg_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_MissingArg_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -15394,16 +15394,16 @@ func (v *Bar_MissingArg_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_MissingArg_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_MissingArg_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_MissingArg_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_MissingArg_Result) FromWire(w wire.Value) error { var err error @@ -15667,14 +15667,14 @@ type Bar_NoRequest_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_NoRequest_Args) ToWire() (wire.Value, error) { var ( fields [0]wire.Field @@ -15691,16 +15691,16 @@ func (v *Bar_NoRequest_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_NoRequest_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_NoRequest_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_NoRequest_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_NoRequest_Args) FromWire(w wire.Value) error { for _, field := range w.GetStruct().Fields { @@ -15921,14 +15921,14 @@ type Bar_NoRequest_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_NoRequest_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -15968,16 +15968,16 @@ func (v *Bar_NoRequest_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_NoRequest_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_NoRequest_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_NoRequest_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_NoRequest_Result) FromWire(w wire.Value) error { var err error @@ -16242,14 +16242,14 @@ type Bar_Normal_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_Normal_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -16278,16 +16278,16 @@ func (v *Bar_Normal_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_Normal_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_Normal_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_Normal_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_Normal_Args) FromWire(w wire.Value) error { var err error @@ -16574,14 +16574,14 @@ type Bar_Normal_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_Normal_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -16621,16 +16621,16 @@ func (v *Bar_Normal_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_Normal_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_Normal_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_Normal_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_Normal_Result) FromWire(w wire.Value) error { var err error @@ -16895,14 +16895,14 @@ type Bar_NormalRecur_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_NormalRecur_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -16931,16 +16931,16 @@ func (v *Bar_NormalRecur_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bar_NormalRecur_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_NormalRecur_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_NormalRecur_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_NormalRecur_Args) FromWire(w wire.Value) error { var err error @@ -17227,14 +17227,14 @@ type Bar_NormalRecur_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_NormalRecur_Result) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -17280,16 +17280,16 @@ func _BarResponseRecur_Read(w wire.Value) (*BarResponseRecur, error) { // An error is returned if we were unable to build a Bar_NormalRecur_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_NormalRecur_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_NormalRecur_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_NormalRecur_Result) FromWire(w wire.Value) error { var err error @@ -17561,14 +17561,14 @@ type Bar_TooManyArgs_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_TooManyArgs_Args) ToWire() (wire.Value, error) { var ( fields [2]wire.Field @@ -17611,16 +17611,16 @@ func _FooStruct_Read(w wire.Value) (*foo.FooStruct, error) { // An error is returned if we were unable to build a Bar_TooManyArgs_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_TooManyArgs_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_TooManyArgs_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_TooManyArgs_Args) FromWire(w wire.Value) error { var err error @@ -17979,14 +17979,14 @@ type Bar_TooManyArgs_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bar_TooManyArgs_Result) ToWire() (wire.Value, error) { var ( fields [3]wire.Field @@ -18040,16 +18040,16 @@ func _FooException_Read(w wire.Value) (*foo.FooException, error) { // An error is returned if we were unable to build a Bar_TooManyArgs_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bar_TooManyArgs_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bar_TooManyArgs_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bar_TooManyArgs_Result) FromWire(w wire.Value) error { var err error @@ -18380,14 +18380,14 @@ type Echo_EchoBinary_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoBinary_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -18416,16 +18416,16 @@ func (v *Echo_EchoBinary_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoBinary_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoBinary_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoBinary_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoBinary_Args) FromWire(w wire.Value) error { var err error @@ -18697,14 +18697,14 @@ type Echo_EchoBinary_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoBinary_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -18736,16 +18736,16 @@ func (v *Echo_EchoBinary_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoBinary_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoBinary_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoBinary_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoBinary_Result) FromWire(w wire.Value) error { var err error @@ -18950,14 +18950,14 @@ type Echo_EchoBool_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoBool_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -18983,16 +18983,16 @@ func (v *Echo_EchoBool_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoBool_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoBool_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoBool_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoBool_Args) FromWire(w wire.Value) error { var err error @@ -19256,14 +19256,14 @@ type Echo_EchoBool_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoBool_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -19295,16 +19295,16 @@ func (v *Echo_EchoBool_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoBool_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoBool_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoBool_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoBool_Result) FromWire(w wire.Value) error { var err error @@ -19513,14 +19513,14 @@ type Echo_EchoDouble_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoDouble_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -19546,16 +19546,16 @@ func (v *Echo_EchoDouble_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoDouble_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoDouble_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoDouble_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoDouble_Args) FromWire(w wire.Value) error { var err error @@ -19819,14 +19819,14 @@ type Echo_EchoDouble_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoDouble_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -19858,16 +19858,16 @@ func (v *Echo_EchoDouble_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoDouble_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoDouble_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoDouble_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoDouble_Result) FromWire(w wire.Value) error { var err error @@ -20088,14 +20088,14 @@ func Default_Echo_EchoEnum_Args() *Echo_EchoEnum_Args { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoEnum_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -20127,16 +20127,16 @@ func (v *Echo_EchoEnum_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoEnum_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoEnum_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoEnum_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoEnum_Args) FromWire(w wire.Value) error { var err error @@ -20416,14 +20416,14 @@ type Echo_EchoEnum_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoEnum_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -20455,16 +20455,16 @@ func (v *Echo_EchoEnum_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoEnum_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoEnum_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoEnum_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoEnum_Result) FromWire(w wire.Value) error { var err error @@ -20673,14 +20673,14 @@ type Echo_EchoI16_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI16_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -20706,16 +20706,16 @@ func (v *Echo_EchoI16_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI16_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI16_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI16_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI16_Args) FromWire(w wire.Value) error { var err error @@ -20979,14 +20979,14 @@ type Echo_EchoI16_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI16_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -21018,16 +21018,16 @@ func (v *Echo_EchoI16_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI16_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI16_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI16_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI16_Result) FromWire(w wire.Value) error { var err error @@ -21236,14 +21236,14 @@ type Echo_EchoI32_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI32_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -21269,16 +21269,16 @@ func (v *Echo_EchoI32_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI32_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI32_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI32_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI32_Args) FromWire(w wire.Value) error { var err error @@ -21542,14 +21542,14 @@ type Echo_EchoI32_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI32_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -21581,16 +21581,16 @@ func (v *Echo_EchoI32_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI32_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI32_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI32_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI32_Result) FromWire(w wire.Value) error { var err error @@ -21837,14 +21837,14 @@ func (_Map_I32_BarResponse_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI32Map_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -21901,16 +21901,16 @@ func _Map_I32_BarResponse_Read(m wire.MapItemList) (map[int32]*BarResponse, erro // An error is returned if we were unable to build a Echo_EchoI32Map_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI32Map_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI32Map_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI32Map_Args) FromWire(w wire.Value) error { var err error @@ -22289,14 +22289,14 @@ type Echo_EchoI32Map_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI32Map_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -22328,16 +22328,16 @@ func (v *Echo_EchoI32Map_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI32Map_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI32Map_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI32Map_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI32Map_Result) FromWire(w wire.Value) error { var err error @@ -22542,14 +22542,14 @@ type Echo_EchoI64_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI64_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -22575,16 +22575,16 @@ func (v *Echo_EchoI64_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI64_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI64_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI64_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI64_Args) FromWire(w wire.Value) error { var err error @@ -22848,14 +22848,14 @@ type Echo_EchoI64_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI64_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -22887,16 +22887,16 @@ func (v *Echo_EchoI64_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI64_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI64_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI64_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI64_Result) FromWire(w wire.Value) error { var err error @@ -23105,14 +23105,14 @@ type Echo_EchoI8_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI8_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -23138,16 +23138,16 @@ func (v *Echo_EchoI8_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI8_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI8_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI8_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI8_Args) FromWire(w wire.Value) error { var err error @@ -23411,14 +23411,14 @@ type Echo_EchoI8_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoI8_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -23450,16 +23450,16 @@ func (v *Echo_EchoI8_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoI8_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoI8_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoI8_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoI8_Result) FromWire(w wire.Value) error { var err error @@ -23668,14 +23668,14 @@ type Echo_EchoString_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoString_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -23701,16 +23701,16 @@ func (v *Echo_EchoString_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoString_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoString_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoString_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoString_Args) FromWire(w wire.Value) error { var err error @@ -23974,14 +23974,14 @@ type Echo_EchoString_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoString_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -24013,16 +24013,16 @@ func (v *Echo_EchoString_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoString_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoString_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoString_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoString_Result) FromWire(w wire.Value) error { var err error @@ -24231,14 +24231,14 @@ type Echo_EchoStringList_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStringList_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -24264,16 +24264,16 @@ func (v *Echo_EchoStringList_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStringList_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStringList_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStringList_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStringList_Args) FromWire(w wire.Value) error { var err error @@ -24542,14 +24542,14 @@ type Echo_EchoStringList_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStringList_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -24581,16 +24581,16 @@ func (v *Echo_EchoStringList_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStringList_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStringList_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStringList_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStringList_Result) FromWire(w wire.Value) error { var err error @@ -24833,14 +24833,14 @@ func (_Map_String_BarResponse_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStringMap_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -24897,16 +24897,16 @@ func _Map_String_BarResponse_Read(m wire.MapItemList) (map[string]*BarResponse, // An error is returned if we were unable to build a Echo_EchoStringMap_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStringMap_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStringMap_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStringMap_Args) FromWire(w wire.Value) error { var err error @@ -25272,14 +25272,14 @@ type Echo_EchoStringMap_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStringMap_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -25311,16 +25311,16 @@ func (v *Echo_EchoStringMap_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStringMap_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStringMap_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStringMap_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStringMap_Result) FromWire(w wire.Value) error { var err error @@ -25551,14 +25551,14 @@ func (_Set_String_mapType_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStringSet_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -25606,16 +25606,16 @@ func _Set_String_mapType_Read(s wire.ValueList) (map[string]struct{}, error) { // An error is returned if we were unable to build a Echo_EchoStringSet_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStringSet_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStringSet_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStringSet_Args) FromWire(w wire.Value) error { var err error @@ -25963,14 +25963,14 @@ type Echo_EchoStringSet_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStringSet_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -26002,16 +26002,16 @@ func (v *Echo_EchoStringSet_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStringSet_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStringSet_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStringSet_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStringSet_Result) FromWire(w wire.Value) error { var err error @@ -26245,14 +26245,14 @@ func (_List_BarResponse_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStructList_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -26296,16 +26296,16 @@ func _List_BarResponse_Read(l wire.ValueList) ([]*BarResponse, error) { // An error is returned if we were unable to build a Echo_EchoStructList_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStructList_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStructList_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStructList_Args) FromWire(w wire.Value) error { var err error @@ -26651,14 +26651,14 @@ type Echo_EchoStructList_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStructList_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -26690,16 +26690,16 @@ func (v *Echo_EchoStructList_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStructList_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStructList_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStructList_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStructList_Result) FromWire(w wire.Value) error { var err error @@ -26950,14 +26950,14 @@ func (_Map_BarResponse_String_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStructMap_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -27023,16 +27023,16 @@ func _Map_BarResponse_String_Read(m wire.MapItemList) ([]struct { // An error is returned if we were unable to build a Echo_EchoStructMap_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStructMap_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStructMap_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStructMap_Args) FromWire(w wire.Value) error { var err error @@ -27469,14 +27469,14 @@ type Echo_EchoStructMap_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStructMap_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -27508,16 +27508,16 @@ func (v *Echo_EchoStructMap_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStructMap_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStructMap_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStructMap_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStructMap_Result) FromWire(w wire.Value) error { var err error @@ -27754,14 +27754,14 @@ func (_Set_BarResponse_sliceType_ValueList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStructSet_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -27809,16 +27809,16 @@ func _Set_BarResponse_sliceType_Read(s wire.ValueList) ([]*BarResponse, error) { // An error is returned if we were unable to build a Echo_EchoStructSet_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStructSet_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStructSet_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStructSet_Args) FromWire(w wire.Value) error { var err error @@ -28176,14 +28176,14 @@ type Echo_EchoStructSet_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoStructSet_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -28215,16 +28215,16 @@ func (v *Echo_EchoStructSet_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoStructSet_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoStructSet_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoStructSet_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoStructSet_Result) FromWire(w wire.Value) error { var err error @@ -28429,14 +28429,14 @@ type Echo_EchoTypedef_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoTypedef_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -28462,16 +28462,16 @@ func (v *Echo_EchoTypedef_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoTypedef_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoTypedef_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoTypedef_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoTypedef_Args) FromWire(w wire.Value) error { var err error @@ -28735,14 +28735,14 @@ type Echo_EchoTypedef_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_EchoTypedef_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -28774,16 +28774,16 @@ func (v *Echo_EchoTypedef_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_EchoTypedef_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_EchoTypedef_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_EchoTypedef_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_EchoTypedef_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/selective-gateway/build/gen-code/clients/foo/base/base/base.go b/examples/selective-gateway/build/gen-code/clients/foo/base/base/base.go index 6a6319ad1..b53de2e66 100644 --- a/examples/selective-gateway/build/gen-code/clients/foo/base/base/base.go +++ b/examples/selective-gateway/build/gen-code/clients/foo/base/base/base.go @@ -24,14 +24,14 @@ type Message struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Message) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -57,16 +57,16 @@ func (v *Message) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Message struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Message -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Message +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Message) FromWire(w wire.Value) error { var err error diff --git a/examples/selective-gateway/build/gen-code/clients/foo/foo/foo.go b/examples/selective-gateway/build/gen-code/clients/foo/foo/foo.go index 94b7ce514..6136ddb2d 100644 --- a/examples/selective-gateway/build/gen-code/clients/foo/foo/foo.go +++ b/examples/selective-gateway/build/gen-code/clients/foo/foo/foo.go @@ -26,14 +26,14 @@ type FooException struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *FooException) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -59,16 +59,16 @@ func (v *FooException) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a FooException struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v FooException -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v FooException +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *FooException) FromWire(w wire.Value) error { var err error @@ -240,14 +240,14 @@ type FooName struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *FooName) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -275,16 +275,16 @@ func (v *FooName) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a FooName struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v FooName -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v FooName +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *FooName) FromWire(w wire.Value) error { var err error @@ -501,14 +501,14 @@ func (_Map_String_String_MapItemList) Close() {} // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *FooStruct) ToWire() (wire.Value, error) { var ( fields [7]wire.Field @@ -616,16 +616,16 @@ func _Message_Read(w wire.Value) (*base.Message, error) { // An error is returned if we were unable to build a FooStruct struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v FooStruct -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v FooStruct +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *FooStruct) FromWire(w wire.Value) error { var err error diff --git a/examples/selective-gateway/build/gen-code/endpoints/bounce/bounce/bounce.go b/examples/selective-gateway/build/gen-code/endpoints/bounce/bounce/bounce.go index 2196bf6a4..109ea1040 100644 --- a/examples/selective-gateway/build/gen-code/endpoints/bounce/bounce/bounce.go +++ b/examples/selective-gateway/build/gen-code/endpoints/bounce/bounce/bounce.go @@ -27,14 +27,14 @@ type Bounce_Bounce_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bounce_Bounce_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -60,16 +60,16 @@ func (v *Bounce_Bounce_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bounce_Bounce_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bounce_Bounce_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bounce_Bounce_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bounce_Bounce_Args) FromWire(w wire.Value) error { var err error @@ -333,14 +333,14 @@ type Bounce_Bounce_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Bounce_Bounce_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -372,16 +372,16 @@ func (v *Bounce_Bounce_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Bounce_Bounce_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Bounce_Bounce_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Bounce_Bounce_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Bounce_Bounce_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/selective-gateway/build/gen-code/endpoints/tchannel/echo/echo/echo.go b/examples/selective-gateway/build/gen-code/endpoints/tchannel/echo/echo/echo.go index ef55415d0..25f07523a 100644 --- a/examples/selective-gateway/build/gen-code/endpoints/tchannel/echo/echo/echo.go +++ b/examples/selective-gateway/build/gen-code/endpoints/tchannel/echo/echo/echo.go @@ -27,14 +27,14 @@ type Echo_Echo_Args struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_Echo_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -60,16 +60,16 @@ func (v *Echo_Echo_Args) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_Echo_Args struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_Echo_Args -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_Echo_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_Echo_Args) FromWire(w wire.Value) error { var err error @@ -333,14 +333,14 @@ type Echo_Echo_Result struct { // An error is returned if the struct or any of its fields failed to // validate. // -// x, err := v.ToWire() -// if err != nil { -// return err -// } +// x, err := v.ToWire() +// if err != nil { +// return err +// } // -// if err := binaryProtocol.Encode(x, writer); err != nil { -// return err -// } +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } func (v *Echo_Echo_Result) ToWire() (wire.Value, error) { var ( fields [1]wire.Field @@ -372,16 +372,16 @@ func (v *Echo_Echo_Result) ToWire() (wire.Value, error) { // An error is returned if we were unable to build a Echo_Echo_Result struct // from the provided intermediate representation. // -// x, err := binaryProtocol.Decode(reader, wire.TStruct) -// if err != nil { -// return nil, err -// } +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } // -// var v Echo_Echo_Result -// if err := v.FromWire(x); err != nil { -// return nil, err -// } -// return &v, nil +// var v Echo_Echo_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil func (v *Echo_Echo_Result) FromWire(w wire.Value) error { var err error diff --git a/examples/selective-gateway/build/proto-gen/clients/echo/echo.pb.yarpc.go b/examples/selective-gateway/build/proto-gen/clients/echo/echo.pb.yarpc.go index 7a5e6f298..8b2da3861 100644 --- a/examples/selective-gateway/build/proto-gen/clients/echo/echo.pb.yarpc.go +++ b/examples/selective-gateway/build/proto-gen/clients/echo/echo.pb.yarpc.go @@ -107,10 +107,10 @@ type FxEchoYARPCClientResult struct { // NewFxEchoYARPCClient provides a EchoYARPCClient // to an Fx application using the given name for routing. // -// fx.Provide( -// echo.NewFxEchoYARPCClient("service-name"), -// ... -// ) +// fx.Provide( +// echo.NewFxEchoYARPCClient("service-name"), +// ... +// ) func NewFxEchoYARPCClient(name string, options ...protobuf.ClientOption) interface{} { return func(params FxEchoYARPCClientParams) FxEchoYARPCClientResult { cc := params.Provider.ClientConfig(name) @@ -156,10 +156,10 @@ type FxEchoYARPCProceduresResult struct { // NewFxEchoYARPCProcedures provides EchoYARPCServer procedures to an Fx application. // It expects a EchoYARPCServer to be present in the container. // -// fx.Provide( -// echo.NewFxEchoYARPCProcedures(), -// ... -// ) +// fx.Provide( +// echo.NewFxEchoYARPCProcedures(), +// ... +// ) func NewFxEchoYARPCProcedures() interface{} { return func(params FxEchoYARPCProceduresParams) FxEchoYARPCProceduresResult { return FxEchoYARPCProceduresResult{ @@ -311,10 +311,10 @@ type FxEchoInternalYARPCClientResult struct { // NewFxEchoInternalYARPCClient provides a EchoInternalYARPCClient // to an Fx application using the given name for routing. // -// fx.Provide( -// echo.NewFxEchoInternalYARPCClient("service-name"), -// ... -// ) +// fx.Provide( +// echo.NewFxEchoInternalYARPCClient("service-name"), +// ... +// ) func NewFxEchoInternalYARPCClient(name string, options ...protobuf.ClientOption) interface{} { return func(params FxEchoInternalYARPCClientParams) FxEchoInternalYARPCClientResult { cc := params.Provider.ClientConfig(name) @@ -360,10 +360,10 @@ type FxEchoInternalYARPCProceduresResult struct { // NewFxEchoInternalYARPCProcedures provides EchoInternalYARPCServer procedures to an Fx application. // It expects a EchoInternalYARPCServer to be present in the container. // -// fx.Provide( -// echo.NewFxEchoInternalYARPCProcedures(), -// ... -// ) +// fx.Provide( +// echo.NewFxEchoInternalYARPCProcedures(), +// ... +// ) func NewFxEchoInternalYARPCProcedures() interface{} { return func(params FxEchoInternalYARPCProceduresParams) FxEchoInternalYARPCProceduresResult { return FxEchoInternalYARPCProceduresResult{ diff --git a/examples/selective-gateway/build/proto-gen/clients/mirror/mirror.pb.yarpc.go b/examples/selective-gateway/build/proto-gen/clients/mirror/mirror.pb.yarpc.go index cee0d9f40..20f065baa 100644 --- a/examples/selective-gateway/build/proto-gen/clients/mirror/mirror.pb.yarpc.go +++ b/examples/selective-gateway/build/proto-gen/clients/mirror/mirror.pb.yarpc.go @@ -107,10 +107,10 @@ type FxMirrorYARPCClientResult struct { // NewFxMirrorYARPCClient provides a MirrorYARPCClient // to an Fx application using the given name for routing. // -// fx.Provide( -// mirror.NewFxMirrorYARPCClient("service-name"), -// ... -// ) +// fx.Provide( +// mirror.NewFxMirrorYARPCClient("service-name"), +// ... +// ) func NewFxMirrorYARPCClient(name string, options ...protobuf.ClientOption) interface{} { return func(params FxMirrorYARPCClientParams) FxMirrorYARPCClientResult { cc := params.Provider.ClientConfig(name) @@ -156,10 +156,10 @@ type FxMirrorYARPCProceduresResult struct { // NewFxMirrorYARPCProcedures provides MirrorYARPCServer procedures to an Fx application. // It expects a MirrorYARPCServer to be present in the container. // -// fx.Provide( -// mirror.NewFxMirrorYARPCProcedures(), -// ... -// ) +// fx.Provide( +// mirror.NewFxMirrorYARPCProcedures(), +// ... +// ) func NewFxMirrorYARPCProcedures() interface{} { return func(params FxMirrorYARPCProceduresParams) FxMirrorYARPCProceduresResult { return FxMirrorYARPCProceduresResult{ @@ -311,10 +311,10 @@ type FxMirrorInternalYARPCClientResult struct { // NewFxMirrorInternalYARPCClient provides a MirrorInternalYARPCClient // to an Fx application using the given name for routing. // -// fx.Provide( -// mirror.NewFxMirrorInternalYARPCClient("service-name"), -// ... -// ) +// fx.Provide( +// mirror.NewFxMirrorInternalYARPCClient("service-name"), +// ... +// ) func NewFxMirrorInternalYARPCClient(name string, options ...protobuf.ClientOption) interface{} { return func(params FxMirrorInternalYARPCClientParams) FxMirrorInternalYARPCClientResult { cc := params.Provider.ClientConfig(name) @@ -360,10 +360,10 @@ type FxMirrorInternalYARPCProceduresResult struct { // NewFxMirrorInternalYARPCProcedures provides MirrorInternalYARPCServer procedures to an Fx application. // It expects a MirrorInternalYARPCServer to be present in the container. // -// fx.Provide( -// mirror.NewFxMirrorInternalYARPCProcedures(), -// ... -// ) +// fx.Provide( +// mirror.NewFxMirrorInternalYARPCProcedures(), +// ... +// ) func NewFxMirrorInternalYARPCProcedures() interface{} { return func(params FxMirrorInternalYARPCProceduresParams) FxMirrorInternalYARPCProceduresResult { return FxMirrorInternalYARPCProceduresResult{ diff --git a/examples/selective-gateway/build/services/selective-gateway/mock-service/mock_init.go b/examples/selective-gateway/build/services/selective-gateway/mock-service/mock_init.go index 5a8aeda54..d52005184 100644 --- a/examples/selective-gateway/build/services/selective-gateway/mock-service/mock_init.go +++ b/examples/selective-gateway/build/services/selective-gateway/mock-service/mock_init.go @@ -37,8 +37,8 @@ import ( // MockClientNodes contains mock client dependencies type MockClientNodes struct { - Mirror *mirrorclientgenerated.MockClient Echo *echoclientgenerated.MockClientWithFixture + Mirror *mirrorclientgenerated.MockClient } // InitializeDependenciesMock fully initializes all dependencies in the dep tree @@ -63,13 +63,13 @@ func InitializeDependenciesMock( } mockClientNodes := &MockClientNodes{ - Mirror: mirrorclientgenerated.NewMockClient(ctrl), Echo: echoclientgenerated.New(ctrl, fixtureechoclientgenerated.Fixture), + Mirror: mirrorclientgenerated.NewMockClient(ctrl), } initializedClientDependencies := &module.ClientDependenciesNodes{} tree.Client = initializedClientDependencies - initializedClientDependencies.Mirror = mockClientNodes.Mirror initializedClientDependencies.Echo = mockClientNodes.Echo + initializedClientDependencies.Mirror = mockClientNodes.Mirror initializedEndpointDependencies := &module.EndpointDependenciesNodes{} tree.Endpoint = initializedEndpointDependencies diff --git a/examples/selective-gateway/build/services/selective-gateway/mock-service/mock_service.go b/examples/selective-gateway/build/services/selective-gateway/mock-service/mock_service.go index 91bed272a..c92d008eb 100644 --- a/examples/selective-gateway/build/services/selective-gateway/mock-service/mock_service.go +++ b/examples/selective-gateway/build/services/selective-gateway/mock-service/mock_service.go @@ -54,7 +54,7 @@ type MockService interface { method string, headers map[string]string, req, resp zanzibar.RWTStruct, - timeoutAndRetryOps *zanzibar.TimeoutAndRetryOptions, + timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (bool, map[string]string, error) MockClients() *MockClientNodes Server() *zanzibar.Gateway @@ -205,7 +205,7 @@ func (m *mockService) MakeTChannelRequest( method string, headers map[string]string, req, res zanzibar.RWTStruct, - timeoutAndRetryOps *zanzibar.TimeoutAndRetryOptions, + timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions, ) (bool, map[string]string, error) { if !m.started { return false, nil, errors.New("mock server is not started") @@ -213,5 +213,5 @@ func (m *mockService) MakeTChannelRequest( sc := m.server.ServerTChannel.GetSubChannel(m.server.ServiceName) sc.Peers().Add(m.server.RealTChannelAddr) - return m.tChannelClient.Call(ctx, thriftService, method, headers, req, res, timeoutAndRetryOps) + return m.tChannelClient.Call(ctx, thriftService, method, headers, req, res, timeoutAndRetryCfg) } diff --git a/examples/selective-gateway/build/services/selective-gateway/module/init.go b/examples/selective-gateway/build/services/selective-gateway/module/init.go index 27fa769fe..682e635de 100644 --- a/examples/selective-gateway/build/services/selective-gateway/module/init.go +++ b/examples/selective-gateway/build/services/selective-gateway/module/init.go @@ -42,8 +42,8 @@ type DependenciesTree struct { // ClientDependenciesNodes contains client dependencies type ClientDependenciesNodes struct { - Mirror mirrorclientgenerated.Client Echo echoclientgenerated.Client + Mirror mirrorclientgenerated.Client } // EndpointDependenciesNodes contains endpoint dependencies @@ -74,10 +74,10 @@ func InitializeDependencies( initializedClientDependencies := &ClientDependenciesNodes{} tree.Client = initializedClientDependencies - initializedClientDependencies.Mirror = mirrorclientgenerated.NewClient(&mirrorclientmodule.Dependencies{ + initializedClientDependencies.Echo = echoclientgenerated.NewClient(&echoclientmodule.Dependencies{ Default: initializedDefaultDependencies, }) - initializedClientDependencies.Echo = echoclientgenerated.NewClient(&echoclientmodule.Dependencies{ + initializedClientDependencies.Mirror = mirrorclientgenerated.NewClient(&mirrorclientmodule.Dependencies{ Default: initializedDefaultDependencies, }) diff --git a/test/endpoints/contacts/save_contacts_test.go b/test/endpoints/contacts/save_contacts_test.go index bd9907a45..7c4f6e673 100644 --- a/test/endpoints/contacts/save_contacts_test.go +++ b/test/endpoints/contacts/save_contacts_test.go @@ -91,7 +91,7 @@ func BenchmarkSaveContacts(b *testing.B) { // Test http method circuit breaker settings settings := hystrix.GetCircuitSettings() - names := [2]string{"contacts-saveContacts", "contacts-testUrlUrl"} + names := [2]string{"contacts-SaveContacts", "contacts-TestURLURL"} // contacts config values from production.json timeout := 10000 max := 1000 diff --git a/test/test_circuit_breaker/circuitbreaker_test.go b/test/test_circuit_breaker/circuitbreaker_test.go index ba81766a4..375328037 100644 --- a/test/test_circuit_breaker/circuitbreaker_test.go +++ b/test/test_circuit_breaker/circuitbreaker_test.go @@ -60,11 +60,11 @@ func TestCircuitBreakerSettings(t *testing.T) { assert.True(t, strings.Contains(circuitBreakerName, "-"), "Circuit breaker name should have '-") } // circuit breaker names for multi client - multiCircuitBreakerNames := [2]string{"multi-helloA", "multi-helloB"} + multiCircuitBreakerNames := [2]string{"multi-HelloA", "multi-HelloB"} // map circuit breaker name to qps level methodToQPSLevel := map[string]string{ - "multi-helloA": "default", - "multi-helloB": "default", + "multi-HelloA": "default", + "multi-HelloB": "default", } // circuit breaker parameters from test.yaml circuitBreakerConfig := map[string]map[string]int{ @@ -116,7 +116,7 @@ func TestCircuitBreakerSettings(t *testing.T) { assert.Equal(t, settings[name], expectedSettings) } // circuit breakers with default qps levels - bazCircuitBreakers := [17]string{"baz-echoBinary", "baz-echoBool", "baz-echoDouble", "baz-echoEnum", "baz-echoI16", "baz-echoI32", "baz-echoI64", "baz-echoI8", "baz-echoString", "baz-echoStringList", "baz-echoStringMap", "baz-echoStringSet", "baz-echoStructList", "baz-echoStructSet", "baz-echoTypedef", "baz-testUuid", "baz-urlTest"} + bazCircuitBreakers := [17]string{"baz-EchoBinary", "baz-EchoBool", "baz-EchoDouble", "baz-EchoEnum", "baz-EchoI16", "baz-EchoI32", "baz-EchoI64", "baz-EchoI8", "baz-EchoString", "baz-EchoStringList", "baz-EchoStringMap", "baz-EchoStringSet", "baz-EchoStructList", "baz-EchoStructSet", "baz-EchoTypedef", "baz-TestUUID", "baz-URLTest"} for _, name := range bazCircuitBreakers { // client overrides for baz