<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Go - Category - Simi Studio</title>
        <link>/en/categories/go/</link>
        <description>Go - Category - Simi Studio</description>
        <generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>simi@simi.studio (Simi)</managingEditor>
            <webMaster>simi@simi.studio (Simi)</webMaster><lastBuildDate>Sun, 15 Mar 2026 10:00:00 &#43;0800</lastBuildDate><atom:link href="/en/categories/go/" rel="self" type="application/rss+xml" /><item>
    <title>Go Best Practices</title>
    <link>/en/posts/go-best-practices/</link>
    <pubDate>Sun, 15 Mar 2026 10:00:00 &#43;0800</pubDate>
    <author>simi@simi.studio (Simi)</author>
    <guid>/en/posts/go-best-practices/</guid>
    <description><![CDATA[<p>One independently built Go tree, one <a href="https://go.dev/ref/mod" target="_blank" rel="noopener noreffer "><code>go.mod</code></a>. The gate is <a href="https://pkg.go.dev/cmd/gofmt" target="_blank" rel="noopener noreffer "><code>gofmt</code></a>, <code>go test ./...</code>, and <code>go vet ./...</code>. The rest of this note is the boundaries a production tree actually hits: modules, errors, concurrency, tests. <a href="https://go.dev/doc/effective_go" target="_blank" rel="noopener noreffer ">Effective Go</a> is not recopied.</p>]]></description>
</item>
<item>
    <title>Go Functional Options</title>
    <link>/en/posts/golang-functional-options-pattern/</link>
    <pubDate>Thu, 25 Jan 2024 14:40:52 &#43;0800</pubDate>
    <author>simi@simi.studio (Simi)</author>
    <guid>/en/posts/golang-functional-options-pattern/</guid>
    <description><![CDATA[<p>Go typically uses structs to encapsulate data. Optional, customizable behavior makes constructors hard to maintain. The <a href="https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis" target="_blank" rel="noopener noreffer ">Functional Options Pattern</a> creates objects with optional parameters.</p>]]></description>
</item>
<item>
    <title>Best Practices for Table-Driven Testing in Golang</title>
    <link>/en/posts/golang-table-driven-testing-best-practices/</link>
    <pubDate>Tue, 09 Jan 2024 17:30:15 &#43;0800</pubDate>
    <author>simi@simi.studio (Simi)</author>
    <guid>/en/posts/golang-table-driven-testing-best-practices/</guid>
    <description><![CDATA[<p><a href="https://go.dev/wiki/TableDrivenTests" target="_blank" rel="noopener noreffer ">Table-driven tests</a> are idiomatic Go for a reason: they make repetitive test cases cheap to write and easy to extend. But they are also easy to abuse. Plenty of Go test suites have giant tables nobody wants to read, magical helpers nobody trusts, and benchmarks copied from blog posts that do not measure anything useful.</p>]]></description>
</item>
<item>
    <title>The Go init Function</title>
    <link>/en/posts/the-go-init-function/</link>
    <pubDate>Thu, 15 Jun 2023 08:32:48 &#43;0800</pubDate>
    <author>simi@simi.studio (Simi)</author>
    <guid>/en/posts/the-go-init-function/</guid>
    <description><![CDATA[<p>The <code>init</code> function in <a href="https://go.dev/doc/" target="_blank" rel="noopener noreffer ">Go</a> is a special function that is called when a program starts. It is used to initialize the program and set up any necessary state.</p>]]></description>
</item>
<item>
    <title>Pointers vs Values in Go Structs</title>
    <link>/en/posts/understanding-pointers-vs-values-in-go-struct/</link>
    <pubDate>Wed, 14 Jun 2023 17:05:46 &#43;0800</pubDate>
    <author>simi@simi.studio (Simi)</author>
    <guid>/en/posts/understanding-pointers-vs-values-in-go-struct/</guid>
    <description><![CDATA[<p>In <a href="https://go.dev/doc/" target="_blank" rel="noopener noreffer ">Go</a>, structs are a common data type used to represent complex data structures. When working with structs, it’s important to understand the difference between struct pointers and struct values.</p>]]></description>
</item>
<item>
    <title>Stack vs Heap in Go</title>
    <link>/en/posts/stack-vs-heap-in-go/</link>
    <pubDate>Tue, 13 Jun 2023 11:14:04 &#43;0800</pubDate>
    <author>simi@simi.studio (Simi)</author>
    <guid>/en/posts/stack-vs-heap-in-go/</guid>
    <description><![CDATA[<p>When it comes to programming in <a href="https://go.dev/doc/" target="_blank" rel="noopener noreffer ">Go</a>, understanding the differences between stack and heap is crucial for efficient memory management.</p>]]></description>
</item>
<item>
    <title>Go Modules</title>
    <link>/en/posts/go-modules/</link>
    <pubDate>Mon, 12 Jun 2023 08:59:44 &#43;0800</pubDate>
    <author>simi@simi.studio (Simi)</author>
    <guid>/en/posts/go-modules/</guid>
    <description><![CDATA[<p>Package management in Go has been a hotly debated topic in the Go community. Before Go 1.11, there was no official package management tool for Go, with the most popular third-party options being <a href="https://github.com/golang/dep" target="_blank" rel="noopener noreffer ">dep</a> and <a href="https://github.com/Masterminds/glide" target="_blank" rel="noopener noreffer ">glide</a>. However, with the release of Go 1.11, the Go team introduced their official package management tool <a href="https://go.dev/doc/go1.13#modules" target="_blank" rel="noopener noreffer ">Go Modules</a> which became the officially recommended package management tool as of Go 1.13.</p>]]></description>
</item>
</channel>
</rss>
