<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Versioning on Brodie Kurczynski</title>
    <link>/tags/versioning/</link>
    <description>Recent content in Versioning 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>Mon, 08 Jul 2024 14:40:23 -0700</lastBuildDate>
    <atom:link href="/tags/versioning/index.xml" rel="self" type="application/rss+xml" />
    <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>
