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

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

Issue 2045063002: [New go generator] Implement declaring unions. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojom/generators/go/templates/declarations_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojom/generators/go/templates/declarations.go
diff --git a/mojom/generators/go/templates/declarations.go b/mojom/generators/go/templates/declarations.go
deleted file mode 100644
index c16bdc4b3a121c54274a5b52d16ad55fc37e0b3f..0000000000000000000000000000000000000000
--- a/mojom/generators/go/templates/declarations.go
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package templates
-
-const structDeclTmplText = `
-{{- define "StructDecl" -}}
-{{$struct := . -}}
-type {{$struct.Name}} struct {
-{{- range $field := $struct.Fields}}
- {{$field.Name}} {{$field.Type}}
-{{- end}}
-}
-{{- end -}}
-`
« no previous file with comments | « no previous file | mojom/generators/go/templates/declarations_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698