pkg/tools/xmlgen/template/ami/event.tmpl
raw| 1 | {{/* gotype: github.com/wenerme/astgo/pkg/tools/xmlgen.ManagerEvent*/}} |
| 2 | {{- define "ami/event"}} |
| 3 | {{with .Synopsis}} {{template "comment" (printf "%v %v" $.StructName .)}} {{end}} |
| 4 | type {{.StructName}} struct { |
| 5 | {{- template "ami/fields" .}} |
| 6 | } |
| 7 | func({{.StructName}})EventTypeName() string{ |
| 8 | return "{{.Name}}" |
| 9 | } |
| 10 | {{- end}} |