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

Side by Side Diff: mojom/generators/go/templates/templates.go

Issue 2077113002: Handle interfaces with a ServiceName in the go bindings generator. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix names issue. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 package templates 5 package templates
6 6
7 import ( 7 import (
8 "bytes" 8 "bytes"
9 "text/template" 9 "text/template"
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 {{ template "Struct" $struct }} 60 {{ template "Struct" $struct }}
61 {{- end}} 61 {{- end}}
62 62
63 {{- range $union := $fileTmpl.Unions}} 63 {{- range $union := $fileTmpl.Unions}}
64 {{ template "Union" $union }} 64 {{ template "Union" $union }}
65 {{- end}} 65 {{- end}}
66 66
67 {{- range $enum := $fileTmpl.Enums}} 67 {{- range $enum := $fileTmpl.Enums}}
68 {{ template "Enum" $enum }} 68 {{ template "Enum" $enum }}
69 {{- end}} 69 {{- end}}
70
71 {{- range $interface := $fileTmpl.Interfaces}}
72 {{ template "Interface" $interface }}
73 {{- end}}
70 {{- end -}} 74 {{- end -}}
71 ` 75 `
OLDNEW
« no previous file with comments | « mojom/generators/go/templates/interfaces_test.go ('k') | mojom/generators/go/translator/mojom_file.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698