| Index: third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/source.tmpl
|
| diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/source.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/source.tmpl
|
| index 820f1135febd5de2c12d76e51987b2058a6fadad..e864d67ca8b3e220e173691ce6df5f71a56d66fe 100644
|
| --- a/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/source.tmpl
|
| +++ b/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/source.tmpl
|
| @@ -19,6 +19,7 @@ import (
|
| {% import "enum.tmpl" as enum_macros %}
|
| {% import "interface.tmpl" as interface_macros %}
|
| {% import "struct.tmpl" as struct_macros %}
|
| +{% import "union.tmpl" as union_macros %}
|
|
|
| {#- Enum definitions #}
|
| {% for enum in enums %}
|
| @@ -34,3 +35,8 @@ import (
|
| {% for struct in structs %}
|
| {{struct_macros.define(struct)}}
|
| {%- endfor %}
|
| +
|
| +{#- Union definitions #}
|
| +{% for union in unions %}
|
| +{{union_macros.define(union)}}
|
| +{%- endfor %}
|
|
|