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

Side by Side Diff: mojo/public/tools/bindings/generators/go_templates/source.tmpl

Issue 948343008: go/bindings: update code to pass structs versions tests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: a small fix Created 5 years, 9 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is autogenerated by: 5 // This file is autogenerated by:
6 // mojo/public/tools/bindings/mojom_bindings_generator.py 6 // mojo/public/tools/bindings/mojom_bindings_generator.py
7 // For: 7 // For:
8 // {{module.path}} 8 // {{module.path}}
9 // 9 //
10 10
11 package {{package}} 11 package {{package}}
12 12
13 import ( 13 import (
14 "fmt"
15 "mojo/public/go/system" 14 "mojo/public/go/system"
16 {% for i in imports %} 15 {% for i in imports %}
17 {{i}} 16 {{i}}
18 {% endfor %} 17 {% endfor %}
19 ) 18 )
20 19
21 var _ = fmt.Errorf
22 var _ = system.GetCore 20 var _ = system.GetCore
23 21
24 {% import "enum.tmpl" as enum_macros %} 22 {% import "enum.tmpl" as enum_macros %}
25 {% import "interface.tmpl" as interface_macros %} 23 {% import "interface.tmpl" as interface_macros %}
26 {% import "struct.tmpl" as struct_macros %} 24 {% import "struct.tmpl" as struct_macros %}
27 25
28 {#- Enum definitions #} 26 {#- Enum definitions #}
29 {% for enum in enums %} 27 {% for enum in enums %}
30 {{enum_macros.define(enum)}} 28 {{enum_macros.define(enum)}}
31 {%- endfor %} 29 {%- endfor %}
32 30
33 {#- Interface definitions #} 31 {#- Interface definitions #}
34 {% for interface in interfaces %} 32 {% for interface in interfaces %}
35 {{interface_macros.define(interface)}} 33 {{interface_macros.define(interface)}}
36 {%- endfor %} 34 {%- endfor %}
37 35
38 {#- Struct definitions #} 36 {#- Struct definitions #}
39 {% for struct in structs %} 37 {% for struct in structs %}
40 {{struct_macros.define(struct)}} 38 {{struct_macros.define(struct)}}
41 {%- endfor %} 39 {%- endfor %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698