diff --git a/bfcodegen/enum-generate.template b/bfcodegen/enum-generate.template index f574a3d..ec6fbd8 100644 --- a/bfcodegen/enum-generate.template +++ b/bfcodegen/enum-generate.template @@ -150,6 +150,6 @@ func {{.EnumTypeName}}ValuesDescriptionMeta() []enums.EnumDescriptionMetaValue { func AllPackageEnums() []enums.Enum { return []enums.Enum{ {{range .Enums}} - {{.EnumTypeName}}, {{end}} + {{ if gt (len .Values) 0 }} {{ $v := index .Values 0 }} {{ $v.VarName}}, {{end}} // {{ .EnumTypeName }} {{end}} } } \ No newline at end of file diff --git a/goextVersion.go b/goextVersion.go index 3b77dde..414950d 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.402" +const GoextVersion = "0.0.403" -const GoextVersionTimestamp = "2024-03-10T12:49:31+0100" +const GoextVersionTimestamp = "2024-03-10T12:58:59+0100"