v0.0.536 revert bfcodegen changes
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m24s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m24s
This commit is contained in:
parent
5a8d7110e4
commit
9b9a79b4ad
@ -167,11 +167,8 @@ func (id {{.Name}}) Valid() error {
|
|||||||
return validateID(prefix{{.Name}}, string(id))
|
return validateID(prefix{{.Name}}, string(id))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *{{.Name}}) String() string {
|
func (i {{.Name}}) String() string {
|
||||||
if i == nil {
|
return string(i)
|
||||||
return "<nil>"
|
|
||||||
}
|
|
||||||
return string(*i)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i {{.Name}}) Prefix() string {
|
func (i {{.Name}}) Prefix() string {
|
||||||
|
@ -69,11 +69,8 @@ func (e {{.EnumTypeName}}) ValuesMeta() []enums.EnumMetaValue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{{if $hasStr}}
|
{{if $hasStr}}
|
||||||
func (e *{{.EnumTypeName}}) String() string {
|
func (e {{.EnumTypeName}}) String() string {
|
||||||
if e == nil {
|
return string(e)
|
||||||
return "<nil>"
|
|
||||||
}
|
|
||||||
return string(*e)
|
|
||||||
}
|
}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
@ -21,11 +21,8 @@ func (i {{.Name}}) MarshalBSONValue() (bsontype.Type, []byte, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *{{.Name}}) String() string {
|
func (i {{.Name}}) String() string {
|
||||||
if i == nil {
|
return string(i)
|
||||||
return "<nil>"
|
|
||||||
}
|
|
||||||
return string(*i)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i {{.Name}}) ObjID() (primitive.ObjectID, error) {
|
func (i {{.Name}}) ObjID() (primitive.ObjectID, error) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.535"
|
const GoextVersion = "0.0.536"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2024-10-22T09:41:59+0200"
|
const GoextVersionTimestamp = "2024-10-22T09:57:06+0200"
|
||||||
|
Loading…
Reference in New Issue
Block a user