diff --git a/generator/golang/templates/ref/ref_tpl.go b/generator/golang/templates/ref/ref_tpl.go index 0e0a474..084b503 100644 --- a/generator/golang/templates/ref/ref_tpl.go +++ b/generator/golang/templates/ref/ref_tpl.go @@ -170,6 +170,7 @@ var enumRef = ` const ( {{- range .Values}} {{- if and Features.ReserveComments .ReservedComments}} + {{.ReservedComments}}{{end}} {{.GoName}} = {{$RefPackage}}.{{.GoName}} {{- end}} )