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

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

Issue 2082173002: New go generator shakedown. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 "text/template" 8 "text/template"
9 ) 9 )
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 {{- end}} 91 {{- end}}
92 } 92 }
93 {{- end -}} 93 {{- end -}}
94 ` 94 `
95 95
96 func initStructTemplates() { 96 func initStructTemplates() {
97 template.Must(goFileTmpl.Parse(structEncodingTmplText)) 97 template.Must(goFileTmpl.Parse(structEncodingTmplText))
98 template.Must(goFileTmpl.Parse(structDeclTmplText)) 98 template.Must(goFileTmpl.Parse(structDeclTmplText))
99 template.Must(goFileTmpl.Parse(structVersions)) 99 template.Must(goFileTmpl.Parse(structVersions))
100 template.Must(goFileTmpl.Parse(structDecodingTmplText)) 100 template.Must(goFileTmpl.Parse(structDecodingTmplText))
101 template.Must(goFileTmpl.Parse(structTmplText))
101 } 102 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698