<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Go on Brodie Kurczynski</title>
    <link>/tags/go/</link>
    <description>Recent content in Go on Brodie Kurczynski</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
    <lastBuildDate>Tue, 15 Oct 2024 16:06:20 -0700</lastBuildDate>
    <atom:link href="/tags/go/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Go Proxy</title>
      <link>/posts/2024/10/go-proxy/</link>
      <pubDate>Tue, 15 Oct 2024 16:06:20 -0700</pubDate>
      <guid>/posts/2024/10/go-proxy/</guid>
      <description>I&amp;rsquo;ve been using a lot of Go lately and I don&amp;rsquo;t have a whole lot of meaningful complaints about it, but I am still figuring out all the bastard gotchas. The most recent one I learned about the hard way was module caching using the Go proxy while building several microservices for a side project. Because it&amp;rsquo;s a side project, a lot of the planning has been done on a whiteboard and by writing shitty throw away code before implementing anything useful.</description>
    </item>
    <item>
      <title>Git Index</title>
      <link>/posts/2024/07/git-index/</link>
      <pubDate>Wed, 17 Jul 2024 15:52:22 -0700</pubDate>
      <guid>/posts/2024/07/git-index/</guid>
      <description>TL;DR Be careful how file path values are written to the git index because they can be set to any value (not just filenames) if you&amp;rsquo;re manipulating the index manually instead of with git. I created a repo with all the code snippets to make things easier to follow instead having of digging through my project with of unrelated application logic.&#xA;Project I was working on a Go project recently that needed to interact with a git repo that took me down a very unexpected, but interesting, rabbit hole.</description>
    </item>
    <item>
      <title>Go Application Version</title>
      <link>/posts/2024/07/go-application-version/</link>
      <pubDate>Mon, 08 Jul 2024 14:40:23 -0700</pubDate>
      <guid>/posts/2024/07/go-application-version/</guid>
      <description>Until recently, I didn&amp;rsquo;t really think about how to get an application&amp;rsquo;s version into its binary without some horrendous use of sed or manually changing hardcoded values. Normally my application&amp;rsquo;s version is just the Docker image tag, but how do I get the version info into the actually binary? Digging through the internet I found a super easy way to have the linker do it with ldflags.&#xA;Just create a global variable where your main function lives:</description>
    </item>
  </channel>
</rss>
