| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |