<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Meir Blumenfeld</title><link>https://meblum.dev/</link><description>Recent content on Meir Blumenfeld</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 14 Mar 2023 23:57:50 -0400</lastBuildDate><atom:link href="https://meblum.dev/index.xml" rel="self" type="application/rss+xml"/><item><title>Checking arguments for nil</title><link>https://meblum.dev/posts/checking-arguments-for-nil/</link><pubDate>Tue, 14 Mar 2023 23:57:50 -0400</pubDate><guid>https://meblum.dev/posts/checking-arguments-for-nil/</guid><description>In this post, we&amp;rsquo;ll explore multiple ways to check a Go interface value for nil, and try to expain why you should probably not check them at all. Let&amp;rsquo;s start with an example to introduce the problem.
In Go, when we assign a typed nil value to an interface, the interface will not be equal to nil. Consider the following, We define a Sender interface with two implementations, an EmailSender and SMSSender:</description></item></channel></rss>