package  mtimport  (	"context" 	"errors" 	"fmt" 	"sort" 	"strings" 	"go.uber.org/multierr" 	"github.com/gotd/td/bin" 	"github.com/gotd/td/tdjson" 	"github.com/gotd/td/tdp" 	"github.com/gotd/td/tgerr" )var  (	_ = bin .Buffer {}	_ = context .Background ()	_ = fmt .Stringer (nil )	_ = strings .Builder {}	_ = errors .Is 	_ = multierr .AppendInto 	_ = sort .Ints 	_ = tdp .Format 	_ = tgerr .Error {}	_ = tdjson .Encoder {})type  RPCResult  struct  {		ReqMsgID  int64 		Result  GzipPacked }const  RPCResultTypeID  = 0xf35c6d01 var  (	_ bin .Encoder      = &RPCResult {}	_ bin .Decoder      = &RPCResult {}	_ bin .BareEncoder  = &RPCResult {}	_ bin .BareDecoder  = &RPCResult {})func  (r  *RPCResult ) Zero bool  {	if  r  == nil  {		return  true 	}	if  !(r .ReqMsgID  == 0 ) {		return  false 	}	if  !(r .Result .Zero ()) {		return  false 	}	return  true }func  (r  *RPCResult ) String string  {	if  r  == nil  {		return  "RPCResult(nil)" 	}	type  Alias  RPCResult 	return  fmt .Sprintf ("RPCResult%+v" , Alias (*r ))}func  (*RPCResult ) TypeID uint32  {	return  RPCResultTypeID }func  (*RPCResult ) TypeName string  {	return  "rpc_result" }func  (r  *RPCResult ) TypeInfo tdp .Type  {	typ  := tdp .Type {		Name : "rpc_result" ,		ID :   RPCResultTypeID ,	}	if  r  == nil  {		typ .Null  = true 		return  typ 	}	typ .Fields  = []tdp .Field {		{			Name :       "ReqMsgID" ,			SchemaName : "req_msg_id" ,		},		{			Name :       "Result" ,			SchemaName : "result" ,		},	}	return  typ }func  (r  *RPCResult ) Encode b  *bin .Buffer ) error  {	if  r  == nil  {		return  fmt .Errorf ("can't encode rpc_result#f35c6d01 as nil" )	}	b .PutID (RPCResultTypeID )	return  r .EncodeBare (b )}func  (r  *RPCResult ) EncodeBare b  *bin .Buffer ) error  {	if  r  == nil  {		return  fmt .Errorf ("can't encode rpc_result#f35c6d01 as nil" )	}	b .PutLong (r .ReqMsgID )	if  err  := r .Result .Encode (b ); err  != nil  {		return  fmt .Errorf ("unable to encode rpc_result#f35c6d01: field result: %w" , err )	}	return  nil }func  (r  *RPCResult ) Decode b  *bin .Buffer ) error  {	if  r  == nil  {		return  fmt .Errorf ("can't decode rpc_result#f35c6d01 to nil" )	}	if  err  := b .ConsumeID (RPCResultTypeID ); err  != nil  {		return  fmt .Errorf ("unable to decode rpc_result#f35c6d01: %w" , err )	}	return  r .DecodeBare (b )}func  (r  *RPCResult ) DecodeBare b  *bin .Buffer ) error  {	if  r  == nil  {		return  fmt .Errorf ("can't decode rpc_result#f35c6d01 to nil" )	}	{		value , err  := b .Long ()		if  err  != nil  {			return  fmt .Errorf ("unable to decode rpc_result#f35c6d01: field req_msg_id: %w" , err )		}		r .ReqMsgID  = value 	}	{		if  err  := r .Result .Decode (b ); err  != nil  {			return  fmt .Errorf ("unable to decode rpc_result#f35c6d01: field result: %w" , err )		}	}	return  nil }func  (r  *RPCResult ) GetReqMsgID value  int64 ) {	if  r  == nil  {		return 	}	return  r .ReqMsgID }func  (r  *RPCResult ) GetResult value  GzipPacked ) {	if  r  == nil  {		return 	}	return  r .Result } The pages are generated with Golds v0.6.7 . (GOOS=linux GOARCH=amd64)
Golds  is a Go 101  project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @Go100and1  (reachable from the left QR code) to get the latest news of Golds .