v0.0.533 Made String() functions in bfcodegen nil-ptr safe
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m9s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m9s
This commit is contained in:
@@ -21,7 +21,10 @@ func (i {{.Name}}) MarshalBSONValue() (bsontype.Type, []byte, error) {
|
||||
}
|
||||
}
|
||||
|
||||
func (i {{.Name}}) String() string {
|
||||
func (i *{{.Name}}) String() string {
|
||||
if i == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return string(i)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user