What is the idiomatic way to return either a struct or an error? What is the idiomatic way to return either a struct or an error? go go

What is the idiomatic way to return either a struct or an error?