Just return the interface, it allows you to return nil
:
func FindStuff() Stuff {
return nil
}
solved What’s the idiomatic way in go to return optional interface values?
Just return the interface, it allows you to return nil
:
func FindStuff() Stuff {
return nil
}
solved What’s the idiomatic way in go to return optional interface values?