<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Golang on nanmu42</title><link>https://nanmu.me/en/tags/golang/</link><description>Recent content in Golang on nanmu42</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>i@nanmu.me (nanmu42)</managingEditor><webMaster>i@nanmu.me (nanmu42)</webMaster><copyright>Copyright &amp;copy;{year} LI Zhennan</copyright><lastBuildDate>Sun, 03 Oct 2021 11:07:58 +0800</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><sy:updateFrequency>weekly</sy:updateFrequency><atom:link href="https://nanmu.me/en/tags/golang/index.xml" rel="self" type="application/rss+xml"/><item><title>The Art of Error Handling in Go</title><link>https://nanmu.me/en/posts/2021/error-handling-in-go/</link><pubDate>Sun, 03 Oct 2021 11:07:58 +0800</pubDate><author>i@nanmu.me (nanmu42)</author><atom:modified>Tue, 06 Aug 2024 10:39:07 +0800</atom:modified><guid>https://nanmu.me/en/posts/2021/error-handling-in-go/</guid><description>Error handling in Go can be confusing for beginners and for those accustomed to other programming languages. In this article, we will distinguish between errors (error) and exceptions (panic), discuss what constitutes a &amp;ldquo;good&amp;rdquo; error (one that is easy to check and debug), and present a common method for improving error handling through the use of fmt.Errorf().
By the way, if you&amp;rsquo;re new to Go and come from a different programming language background, I recommend reading my previous post, &amp;ldquo;The Second Language Guide to Golang&amp;rdquo;.</description><dc:creator>nanmu42</dc:creator><category>Golang</category><category>Notes and Discussions</category></item><item><title>Learning Golang as Your Second Programming Language: Learning Paths, Best Practices, and Engineering</title><link>https://nanmu.me/en/posts/2021/way-to-go/</link><pubDate>Wed, 27 Jan 2021 14:21:58 +0800</pubDate><author>i@nanmu.me (nanmu42)</author><atom:modified>Tue, 06 Aug 2024 10:39:07 +0800</atom:modified><guid>https://nanmu.me/en/posts/2021/way-to-go/</guid><description>This article is for those who have some programming background and are considering learning Golang as their second programming language. I hope to provide some direction for your learning journey.
The mascot for the Go language is the Gopher, and enthusiasts of the Go language often refer to themselves as Gophers. Image by Renee French Overview Introduced in 2009 and backed by Google, Go, designed by computing pioneers Robert Griesemer, Rob Pike, and Ken Thompson, is a statically typed, compiled, cross-platform language with concurrency support at the language level, garbage collection, and a syntax within the tradition of the C programming language.</description><dc:creator>nanmu42</dc:creator><category>Golang</category><category>Notes and Discussions</category></item></channel></rss>