2
0
mirror of synced 2025-02-22 22:38:18 +00:00
mobile/bind/testdata/issue12328.go.golden
David Crawshaw 11fe695b54 bind: support fields with type error
Fixes golang/go#12328

Change-Id: I42872d26acb1c44522a64405cfa2d0f10fb24485
Reviewed-on: https://go-review.googlesource.com/13919
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2015-08-26 20:25:55 +00:00

40 lines
834 B
Plaintext

// Package go_issue12328 is an autogenerated binder stub for package issue12328.
// gobind -lang=go issue12328
//
// File is generated by gobind. Do not edit.
package go_issue12328
import (
"golang.org/x/mobile/bind/seq"
"issue12328"
)
const (
proxyT_Descriptor = "go.issue12328.T"
proxyT_Err_Get_Code = 0x00f
proxyT_Err_Set_Code = 0x01f
)
type proxyT seq.Ref
func proxyT_Err_Set(out, in *seq.Buffer) {
ref := in.ReadRef()
v := in.ReadError()
ref.Get().(*issue12328.T).Err = v
}
func proxyT_Err_Get(out, in *seq.Buffer) {
ref := in.ReadRef()
v := ref.Get().(*issue12328.T).Err
if v == nil {
out.WriteString("")
} else {
out.WriteString(v.Error())
}
}
func init() {
seq.Register(proxyT_Descriptor, proxyT_Err_Set_Code, proxyT_Err_Set)
seq.Register(proxyT_Descriptor, proxyT_Err_Get_Code, proxyT_Err_Get)
}