예제 #1
0
func (t *RpcError) Write(proto tl.Encoder) (err error) {
	err = proto.WriteInt(t.ErrorCode)
	if err != nil {
		return
	}
	err = proto.WriteString(t.ErrorMessage)
	return
}
예제 #2
0
func (t *String) Write(proto tl.Encoder) (err error) {
	err = proto.WriteString(t.value)
	return
}