Index: mojom/generators/go/templates/templates.go |
diff --git a/mojom/generators/go/templates/templates.go b/mojom/generators/go/templates/templates.go |
index fdb237eb498b0b104e360030aa6499a5c4174812..f5e3f02a1461dc03f6c22de9eab7f2c0ee8dfe6f 100644 |
--- a/mojom/generators/go/templates/templates.go |
+++ b/mojom/generators/go/templates/templates.go |
@@ -92,5 +92,9 @@ import ( |
{{- range $interface := $fileTmpl.Interfaces}} |
{{ template "Interface" $interface }} |
{{- end}} |
+ |
+{{- range $constant := $fileTmpl.Constants}} |
+const {{$constant.Name}} {{$constant.Type}} = {{$constant.Value}} |
+{{end}} |
{{- end -}} |
` |