v0.0.607
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m17s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m17s
This commit is contained in:
@@ -118,8 +118,8 @@ func (e {{.EnumTypeName}}) DescriptionMeta() enums.EnumDescriptionMetaValue {
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if $hasData}}
|
{{if $hasData}}
|
||||||
func (e {{.EnumTypeName}}) DataMeta() enums.EnumMetaDataValue {
|
func (e {{.EnumTypeName}}) DataMeta() enums.EnumDataMetaValue {
|
||||||
return enums.EnumMetaDataValue{
|
return enums.EnumDataMetaValue{
|
||||||
VarName: e.VarName(),
|
VarName: e.VarName(),
|
||||||
Value: e,
|
Value: e,
|
||||||
Description: e.Description(),
|
Description: e.Description(),
|
||||||
|
@@ -34,7 +34,7 @@ type EnumDescriptionMetaValue struct {
|
|||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type EnumMetaDataValue struct {
|
type EnumDataMetaValue struct {
|
||||||
VarName string `json:"varName"`
|
VarName string `json:"varName"`
|
||||||
Value Enum `json:"value"`
|
Value Enum `json:"value"`
|
||||||
Description *string `json:"description"`
|
Description *string `json:"description"`
|
||||||
@@ -42,7 +42,7 @@ type EnumMetaDataValue struct {
|
|||||||
Data map[string]any `json:"-"` //handled by MarshalJSON
|
Data map[string]any `json:"-"` //handled by MarshalJSON
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v EnumMetaDataValue) MarshalJSON() ([]byte, error) {
|
func (v EnumDataMetaValue) MarshalJSON() ([]byte, error) {
|
||||||
m := make(map[string]any, 8)
|
m := make(map[string]any, 8)
|
||||||
|
|
||||||
for k, dv := range v.Data {
|
for k, dv := range v.Data {
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.606"
|
const GoextVersion = "0.0.607"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2025-10-04T00:08:32+0200"
|
const GoextVersionTimestamp = "2025-10-04T00:24:13+0200"
|
||||||
|
Reference in New Issue
Block a user