Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: third_party/go/src/golang.org/x/mobile/bind/testdata/structs.go.golden

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Package go_structs is an autogenerated binder stub for package structs.
2 // gobind -lang=go structs
3 //
4 // File is generated by gobind. Do not edit.
5 package go_structs
6
7 import (
8 "golang.org/x/mobile/bind/seq"
9 "structs"
10 )
11
12 const (
13 proxySDescriptor = "go.structs.S"
14 proxySXGetCode = 0x00f
15 proxySXSetCode = 0x01f
16 proxySYGetCode = 0x10f
17 proxySYSetCode = 0x11f
18 proxySSumCode = 0x00c
19 )
20
21 type proxyS seq.Ref
22
23 func proxySXSet(out, in *seq.Buffer) {
24 ref := in.ReadRef()
25 v := in.ReadFloat64()
26 ref.Get().(*structs.S).X = v
27 }
28
29 func proxySXGet(out, in *seq.Buffer) {
30 ref := in.ReadRef()
31 v := ref.Get().(*structs.S).X
32 out.WriteFloat64(v)
33 }
34
35 func proxySYSet(out, in *seq.Buffer) {
36 ref := in.ReadRef()
37 v := in.ReadFloat64()
38 ref.Get().(*structs.S).Y = v
39 }
40
41 func proxySYGet(out, in *seq.Buffer) {
42 ref := in.ReadRef()
43 v := ref.Get().(*structs.S).Y
44 out.WriteFloat64(v)
45 }
46
47 func proxySSum(out, in *seq.Buffer) {
48 ref := in.ReadRef()
49 v := ref.Get().(*structs.S)
50 res := v.Sum()
51 out.WriteFloat64(res)
52 }
53
54 func init() {
55 seq.Register(proxySDescriptor, proxySXSetCode, proxySXSet)
56 seq.Register(proxySDescriptor, proxySXGetCode, proxySXGet)
57 seq.Register(proxySDescriptor, proxySYSetCode, proxySYSet)
58 seq.Register(proxySDescriptor, proxySYGetCode, proxySYGet)
59 seq.Register(proxySDescriptor, proxySSumCode, proxySSum)
60 }
61
62 func init() {
63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698