That&#x27;s not really true. It&#x27;s certainly an <i>idiom</i> in Golang to handle errors individually, but it&#x27;s not a principle.<p>The principal is that errors are values like everything else, and you can write code to handle them however you&#x27;d like. See, for instance, the &quot;write&quot; example in this post:<p><a href="https:&#x2F;&#x2F;blog.golang.org&#x2F;errors-are-values" rel="nofollow">https:&#x2F;&#x2F;blog.golang.org&#x2F;errors-are-values</a><p>There are libraries that people use (sqlx might be an example) that are more like that example than the if-error-return stuff here.