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

Unified Diff: mojom/generators/go/templates/unions.go

Issue 2091493002: Switch to the new go generator in the mojo tree. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix more things. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: mojom/generators/go/templates/unions.go
diff --git a/mojom/generators/go/templates/unions.go b/mojom/generators/go/templates/unions.go
index 176b215df6e55e4cec0f679e8bb616e0a880882c..88c4b33d727c63a41b712c0ad8082c1eaaaaf074 100644
--- a/mojom/generators/go/templates/unions.go
+++ b/mojom/generators/go/templates/unions.go
@@ -16,7 +16,7 @@ const unionTmplText = `
{{ template "UnknownUnionFieldDecl" $union }}
{{ template "UnknownUnionFieldEncode" $union }}
-{{- range $field := $union.Field}}
+{{- range $field := $union.Fields}}
{{ template "UnionFieldDecl" $field }}
{{ template "UnionFieldEncode" $field }}
« mojom/generators/go/go_generator.go ('K') | « mojom/generators/go/templates/templates.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698