<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>yaml on Arrans Technical blog</title><link>https://arran4.github.io/blog/tags/yaml/</link><description>Recent content in yaml on Arrans Technical blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>technicalblog123@arran4.com (Arran Ubels)</managingEditor><webMaster>technicalblog123@arran4.com (Arran Ubels)</webMaster><copyright>Arran Ubels. This work is licensed under a &lt;a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License&lt;/a>.</copyright><lastBuildDate>Tue, 28 Jul 2026 11:50:49 +0000</lastBuildDate><atom:link href="https://arran4.github.io/blog/tags/yaml/index.xml" rel="self" type="application/rss+xml"/><item><title>Mastering Go Template Whitespace: The Meaning of the Minus Sign</title><link>https://arran4.github.io/blog/post/2026/027-mastering-go-template-whitespace/</link><pubDate>Tue, 28 Jul 2026 11:50:49 +0000</pubDate><author>technicalblog123@arran4.com (Arran Ubels)</author><guid>https://arran4.github.io/blog/post/2026/027-mastering-go-template-whitespace/</guid><description>One of the most common pitfalls when working with Go&amp;rsquo;s text/template and html/template packages—and a frequent stumbling block for AI agents—is understanding how whitespace manipulation works. Specifically, the - (minus sign) in {{- and -}} is highly meaningful. It is not just decorative syntax or a continuation of the {{ token; it explicitly clears whitespace.
If you aren&amp;rsquo;t careful with these markers, you can quickly ruin the formatting of output that relies on strict whitespace, such as YAML or cleanly indented HTML.</description></item></channel></rss>