From f13384d79429982fdea35f378bdeef0b1fa46be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sun, 10 Mar 2024 12:58:59 +0100 Subject: [PATCH] v0.0.403 bf --- bfcodegen/enum-generate.template | 2 +- goextVersion.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"