v0.0.452
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m16s

This commit is contained in:
Mike Schwörer 2024-05-14 12:48:43 +02:00
parent 246e555f3f
commit dfc319573c
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 2 additions and 86 deletions

View File

@ -1,5 +1,5 @@
package goext 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"

View File

@ -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 { func AllPackageEnums() []enums.Enum {
return []enums.Enum{ return []enums.Enum{
ImageFitStretch, // ImageFit ImageFitStretch, // ImageFit
CompressionPNGNone, // ImageCompresson CompressionPNGNone, // ImageCompresson
CatDocument, // MimeCategory
} }
} }