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:
@@ -167,11 +167,8 @@ func (id {{.Name}}) Valid() error {
|
||||
return validateID(prefix{{.Name}}, string(id))
|
||||
}
|
||||
|
||||
func (i *{{.Name}}) String() string {
|
||||
if i == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return string(*i)
|
||||
func (i {{.Name}}) String() string {
|
||||
return string(i)
|
||||
}
|
||||
|
||||
func (i {{.Name}}) Prefix() string {
|
||||
|
@@ -69,11 +69,8 @@ func (e {{.EnumTypeName}}) ValuesMeta() []enums.EnumMetaValue {
|
||||
}
|
||||
|
||||
{{if $hasStr}}
|
||||
func (e *{{.EnumTypeName}}) String() string {
|
||||
if e == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return string(*e)
|
||||
func (e {{.EnumTypeName}}) String() string {
|
||||
return string(e)
|
||||
}
|
||||
{{end}}
|
||||
|
||||
|
@@ -21,11 +21,8 @@ func (i {{.Name}}) MarshalBSONValue() (bsontype.Type, []byte, error) {
|
||||
}
|
||||
}
|
||||
|
||||
func (i *{{.Name}}) String() string {
|
||||
if i == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return string(*i)
|
||||
func (i {{.Name}}) String() string {
|
||||
return string(i)
|
||||
}
|
||||
|
||||
func (i {{.Name}}) ObjID() (primitive.ObjectID, error) {
|
||||
|
Reference in New Issue
Block a user