blob: a8953ef997b4313eeeef07c54f1176ea1b1f532b [file] [log] [blame]
{{/*
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
*/}}
{{- define "StructDefinition" -}}
{{range .DocComments}}
//{{ . }}
{{- end}}
type {{ .Name }} struct {
_ struct{} `{{ .Tags }}`
{{- range .Members }}
{{- range .DocComments}}
//{{ . }}
{{- end}}
{{ .Name }} {{ .Type }} `{{ .Tags }}`
{{- end }}
}
var _m{{ .Name }} = _bindings.CreateLazyMarshaler({{ .Name }}{})
func (msg *{{ .Name }}) Marshaler() _bindings.Marshaler {
return _m{{ .Name }}
}
{{- end -}}