The Strange Case of Go's nil Interface Comparison
📰 Dev.to · Gabriel Anhaia
Your function returns nil. Your caller checks for nil. The check fails. Welcome to typed-nil interfaces in Go.
Your function returns nil. Your caller checks for nil. The check fails. Welcome to typed-nil interfaces in Go.