From dfc319573c7c7ffc9081758285008b1555a7ee92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Tue, 14 May 2024 12:48:43 +0200 Subject: [PATCH] v0.0.452 --- goextVersion.go | 4 +-- imageext/enums_gen.go | 84 ------------------------------------------- 2 files changed, 2 insertions(+), 86 deletions(-) diff --git a/goextVersion.go b/goextVersion.go index 7759b57..cd880e9 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.451" +const GoextVersion = "0.0.452" -const GoextVersionTimestamp = "2024-05-14T12:46:49+0200" +const GoextVersionTimestamp = "2024-05-14T12:48:43+0200" diff --git a/imageext/enums_gen.go b/imageext/enums_gen.go index b15f52d..52e4e4f 100644 --- a/imageext/enums_gen.go +++ b/imageext/enums_gen.go @@ -206,95 +206,11 @@ func ImageCompressonValuesMeta() []enums.EnumMetaValue { } } -// ================================ MimeCategory ================================ -// -// File: mime.go -// StringEnum: true -// DescrEnum: false -// DataEnum: false -// - -var __MimeCategoryValues = []MimeCategory{ - CatDocument, - CatImage, - CatVideo, - CatContainer, -} - -var __MimeCategoryVarnames = map[MimeCategory]string{ - CatDocument: "CatDocument", - CatImage: "CatImage", - CatVideo: "CatVideo", - CatContainer: "CatContainer", -} - -func (e MimeCategory) Valid() bool { - return langext.InArray(e, __MimeCategoryValues) -} - -func (e MimeCategory) Values() []MimeCategory { - return __MimeCategoryValues -} - -func (e MimeCategory) ValuesAny() []any { - return langext.ArrCastToAny(__MimeCategoryValues) -} - -func (e MimeCategory) ValuesMeta() []enums.EnumMetaValue { - return MimeCategoryValuesMeta() -} - -func (e MimeCategory) String() string { - return string(e) -} - -func (e MimeCategory) VarName() string { - if d, ok := __MimeCategoryVarnames[e]; ok { - return d - } - return "" -} - -func (e MimeCategory) TypeName() string { - return "MimeCategory" -} - -func (e MimeCategory) PackageName() string { - return "media" -} - -func (e MimeCategory) Meta() enums.EnumMetaValue { - return enums.EnumMetaValue{VarName: e.VarName(), Value: e, Description: nil} -} - -func ParseMimeCategory(vv string) (MimeCategory, bool) { - for _, ev := range __MimeCategoryValues { - if string(ev) == vv { - return ev, true - } - } - return "", false -} - -func MimeCategoryValues() []MimeCategory { - return __MimeCategoryValues -} - -func MimeCategoryValuesMeta() []enums.EnumMetaValue { - return []enums.EnumMetaValue{ - CatDocument.Meta(), - CatImage.Meta(), - CatVideo.Meta(), - CatContainer.Meta(), - } -} - // ================================ ================= ================================ func AllPackageEnums() []enums.Enum { return []enums.Enum{ ImageFitStretch, // ImageFit CompressionPNGNone, // ImageCompresson - CatDocument, // MimeCategory } }