Go Time: Golang, Software Engineering cover image

How to make mistakes in Go

Go Time: Golang, Software Engineering

00:00

Is There an Antidote to Returning an Interface?

In general we tend to say we shouldn't return interface, right? So accept interfaces and rather return concrete types. But I believe that it's not a hard rule because sometimes even you can see from the standard library directly some functions returning directly a nio.reader or IO.writer instead of a type itself of a struct. And yeah, nil isn't exactly the same thing as a near receiver so it's still something I believe that we can face.

Play episode from 12:07
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app