
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
      <title>Duncan Leung</title>
      <link>https://www.duncanleung.com/blog</link>
      <description>📚 Learning, 👨🏻‍💻 Building, 📝 Documenting...</description>
      <language>en-us</language>
      <managingEditor>duncan@leungs.email (Duncan Leung)</managingEditor>
      <webMaster>duncan@leungs.email (Duncan Leung)</webMaster>
      <lastBuildDate>Wed, 16 Jun 2021 00:00:00 GMT</lastBuildDate>
      <atom:link href="https://www.duncanleung.com/tags/go/feed.xml" rel="self" type="application/rss+xml"/>
      
  <item>
    <guid>https://www.duncanleung.com/blog/iterating-index-strings-runes-go-golang</guid>
    <title>Indexing Strings and Runes in Go</title>
    <link>https://www.duncanleung.com/blog/iterating-index-strings-runes-go-golang</link>
    <description>Understanding the difference between indexing strings as bytes versus runes in Go, and when to use each approach for proper Unicode handling.</description>
    <pubDate>Wed, 16 Jun 2021 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>backend</category><category>go</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/go-basic-data-structures-types-pointers-structs-arrays-slices-int-float-string</guid>
    <title>Basic Data Structures in Go</title>
    <link>https://www.duncanleung.com/blog/go-basic-data-structures-types-pointers-structs-arrays-slices-int-float-string</link>
    <description>Understanding Go data structures and their memory layout including integers, floats, arrays, pointers, structs, strings, and slices.</description>
    <pubDate>Fri, 09 Jul 2021 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>backend</category><category>go</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/understand-go-golang-interfaces</guid>
    <title>Understanding Interfaces in Go</title>
    <link>https://www.duncanleung.com/blog/understand-go-golang-interfaces</link>
    <description>A guide to understand Go interfaces through a power socket and electrical device analogy, covering duck typing and interface implementation.</description>
    <pubDate>Thu, 23 Dec 2021 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>backend</category><category>go</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/go-function-arguments-passed-by-value</guid>
    <title>Go Function Argument Passing Behavior</title>
    <link>https://www.duncanleung.com/blog/go-function-arguments-passed-by-value</link>
    <description>How Go passes function arguments by value and the implications for different data types: integers, pointers, slices, strings, and structs.</description>
    <pubDate>Thu, 08 Jun 2023 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>backend</category><category>go</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/go-json-encoding-and-decoding</guid>
    <title>JSON Encoding and Decoding in Go</title>
    <link>https://www.duncanleung.com/blog/go-json-encoding-and-decoding</link>
    <description>A guide to JSON serialization and deserialization in Go, covering type mappings, HTTP responses, and practical examples with the net/http package.</description>
    <pubDate>Mon, 19 Jun 2023 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>backend</category><category>go</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/slices-in-go</guid>
    <title>Slices in Go</title>
    <link>https://www.duncanleung.com/blog/slices-in-go</link>
    <description>Understanding Go slices, their underlying array structure, creation and modification mechanics, and the implications when passing slices to functions.</description>
    <pubDate>Mon, 26 Jun 2023 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>backend</category><category>go</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/allocating-memory-go</guid>
    <title>Allocating Memory in Go</title>
    <link>https://www.duncanleung.com/blog/allocating-memory-go</link>
    <description>Understanding memory allocation in Go, including stack vs heap allocation, escape analysis, and how Go handles pointer returns from functions.</description>
    <pubDate>Wed, 28 Jun 2023 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>backend</category><category>go</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/methods-in-go</guid>
    <title>Methods in Go</title>
    <link>https://www.duncanleung.com/blog/methods-in-go</link>
    <description>Understanding Go methods, the difference between value and pointer receivers, embedding for composition, and how interfaces work with methods.</description>
    <pubDate>Wed, 28 Jun 2023 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>backend</category><category>go</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/go-idiom-accept-interfaces-return-types</guid>
    <title>Go Idioms: Accept Interfaces, Return Types</title>
    <link>https://www.duncanleung.com/blog/go-idiom-accept-interfaces-return-types</link>
    <description>Understanding the Go idiom of accepting interfaces and returning concrete types to write flexible, reusable, and maintainable code.</description>
    <pubDate>Fri, 30 Jun 2023 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>backend</category><category>go</category>
  </item>

    </channel>
  </rss>
