diff --git a/bfcodegen/enum-generate.template b/bfcodegen/enum-generate.template index f98b77b..92db6a0 100644 --- a/bfcodegen/enum-generate.template +++ b/bfcodegen/enum-generate.template @@ -77,7 +77,7 @@ func (e {{.EnumTypeName}}) Meta() enums.EnumMetaValue { {{if $hasDescr}} func (e {{.EnumTypeName}}) DescriptionMeta() enums.EnumDescriptionMetaValue { - return enums.EnumDescriptionMetaValue{VarName: e.VarName(), Value: e.String(), Description: e.Description()} + return enums.EnumDescriptionMetaValue{VarName: e.VarName(), Value: e, Description: e.Description()} } {{end}} @@ -101,9 +101,9 @@ func {{.EnumTypeName}}ValuesMeta() []enums.EnumMetaValue { } {{if $hasDescr}} -func (e {{.EnumTypeName}}) ValuesDescriptionMeta() []enums.EnumDescriptionMetaValue { - return []enums.EnumMetaValue{ {{range .Values}} - {{.VarName}}.DescriptionMeta(), {{end}} +func {{.EnumTypeName}}ValuesMeta() []enums.EnumDescriptionMetaValue { + return []enums.EnumDescriptionMetaValue{ {{range .Values}} + {{.VarName}}.EnumDescriptionMetaValue(), {{end}} } } {{end}} diff --git a/goextVersion.go b/goextVersion.go index 4584137..435b642 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.335" +const GoextVersion = "0.0.336" -const GoextVersionTimestamp = "2023-12-05T19:38:03+0100" +const GoextVersionTimestamp = "2023-12-05T19:42:37+0100"