本文整理匯總了Golang中github.com/apache/thrift/lib/go/thrift.TProtocol.ReadBool方法的典型用法代碼示例。如果您正苦於以下問題:Golang TProtocol.ReadBool方法的具體用法?Golang TProtocol.ReadBool怎麽用?Golang TProtocol.ReadBool使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/apache/thrift/lib/go/thrift.TProtocol
的用法示例。
在下文中一共展示了TProtocol.ReadBool方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: readField1
func (p *HealthStatus) readField1(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return thrift.PrependError("error reading field 1: ", err)
} else {
p.Ok = v
}
return nil
}
示例2: ReadField1
func (p *HealthCheckRes) ReadField1(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return fmt.Errorf("error reading field 1: %s", err)
} else {
p.Healthy = v
}
return nil
}
示例3: readField9
func (p *Span) readField9(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return thrift.PrependError("error reading field 9: ", err)
} else {
p.Debug = v
}
return nil
}
示例4: ReadField1
func (p *Data) ReadField1(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return thrift.PrependError("error reading field 1: ", err)
} else {
p.B1 = v
}
return nil
}
示例5: ReadField9
func (p *Span) ReadField9(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return fmt.Errorf("error reading field 9: %s", err)
} else {
p.Debug = v
}
return nil
}
示例6: readField4
func (p *BinaryAnnotation) readField4(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return thrift.PrependError("error reading field 4: ", err)
} else {
p.BoolValue = &v
}
return nil
}
示例7: ReadField1
func (p *Response) ReadField1(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return fmt.Errorf("error reading field 1: %s", err)
} else {
p.Ok = v
}
return nil
}