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:
@@ -167,7 +167,10 @@ func (id {{.Name}}) Valid() error {
|
||||
return validateID(prefix{{.Name}}, string(id))
|
||||
}
|
||||
|
||||
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