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