github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/mobile/bind/testdata/issue12328.go.golden (about)

     1  // Package go_issue12328 is an autogenerated binder stub for package issue12328.
     2  //   gobind -lang=go issue12328
     3  //
     4  // File is generated by gobind. Do not edit.
     5  package go_issue12328
     6  
     7  import (
     8  	"golang.org/x/mobile/bind/seq"
     9  	"issue12328"
    10  )
    11  
    12  const (
    13  	proxyT_Descriptor   = "go.issue12328.T"
    14  	proxyT_Err_Get_Code = 0x00f
    15  	proxyT_Err_Set_Code = 0x01f
    16  )
    17  
    18  type proxyT seq.Ref
    19  
    20  func proxyT_Err_Set(out, in *seq.Buffer) {
    21  	ref := in.ReadRef()
    22  	v := in.ReadError()
    23  	ref.Get().(*issue12328.T).Err = v
    24  }
    25  
    26  func proxyT_Err_Get(out, in *seq.Buffer) {
    27  	ref := in.ReadRef()
    28  	v := ref.Get().(*issue12328.T).Err
    29  	if v == nil {
    30  		out.WriteString("")
    31  	} else {
    32  		out.WriteString(v.Error())
    33  	}
    34  }
    35  
    36  func init() {
    37  	seq.Register(proxyT_Descriptor, proxyT_Err_Set_Code, proxyT_Err_Set)
    38  	seq.Register(proxyT_Descriptor, proxyT_Err_Get_Code, proxyT_Err_Get)
    39  }