<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Template on もふもふのブログ</title><link>https://mome-n.com/tags/template/</link><description>Recent content in Template on もふもふのブログ</description><generator>Hugo -- gohugo.io</generator><language>ja</language><copyright>&amp;copy;{year} もふもふのブログ</copyright><lastBuildDate>Sat, 08 Mar 2025 17:00:00 +0900</lastBuildDate><atom:link href="https://mome-n.com/tags/template/index.xml" rel="self" type="application/rss+xml"/><item><title>Goテンプレートのトリミング｜空白削除の仕組みと実践例</title><link>https://mome-n.com/posts/go-template-trimming/</link><pubDate>Sat, 08 Mar 2025 17:00:00 +0900</pubDate><atom:modified>Wed, 07 Jan 2026 23:36:43 +0900</atom:modified><guid>https://mome-n.com/posts/go-template-trimming/</guid><description>&lt;div class="heading-container"&gt;
&lt;h2 id="まえがき"&gt;
&lt;span class="heading-text"&gt;まえがき&lt;/span&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Goのテンプレートを使うと、データを元に動的なテキストを生成できますが、出力されるテキストに &lt;strong&gt;不要な空白や改行が混ざってしまう&lt;/strong&gt; ことがあります。&lt;br&gt;
特に、HTMLやメールテンプレートなどを扱う場合、意図しないスペースが入ると見栄えが崩れることも…。&lt;/p&gt;</description><dc:creator>もふもふ</dc:creator><media:content url="https://mome-n.com/images/content-eye-catch/89e2ffb39b260929.png" medium="image"><media:title type="html">meta image</media:title></media:content><category>template</category><category>golang</category></item><item><title>Go言語テンプレートの再利用方法を初心者向けに解説</title><link>https://mome-n.com/posts/go-template-define/</link><pubDate>Sat, 08 Mar 2025 14:30:00 +0900</pubDate><atom:modified>Wed, 07 Jan 2026 23:36:43 +0900</atom:modified><guid>https://mome-n.com/posts/go-template-define/</guid><description>&lt;div class="heading-container"&gt;
&lt;h2 id="まえがき"&gt;
&lt;span class="heading-text"&gt;まえがき&lt;/span&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Go言語には、HTMLやテキストを動的に生成するための便利なテンプレート機能があります。特にWebアプリケーション開発では、同じテンプレートを複数のページで再利用することが多くあります。今回は初心者の方向けに、Go言語のテンプレート機能を再利用する方法について、基本的な使い方から実用的な例、利点、注意点まで詳しく解説していきます。&lt;/p&gt;</description><dc:creator>もふもふ</dc:creator><media:content url="https://mome-n.com/images/content-eye-catch/0a11b64a352eff31.png" medium="image"><media:title type="html">meta image</media:title></media:content><category>template</category><category>golang</category></item><item><title>Go言語テンプレートのif文の使い方を初心者向けに解説</title><link>https://mome-n.com/posts/go-template-if/</link><pubDate>Fri, 07 Mar 2025 22:00:00 +0900</pubDate><atom:modified>Wed, 07 Jan 2026 23:36:43 +0900</atom:modified><guid>https://mome-n.com/posts/go-template-if/</guid><description>&lt;div class="heading-container"&gt;
&lt;h2 id="まえがき"&gt;
&lt;span class="heading-text"&gt;まえがき&lt;/span&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Go言語のテンプレート機能は、HTMLやテキストファイルを動的に生成する際に非常に便利な機能です。その中でも特に重要なのが条件分岐を行う「if文」です。今回は初心者の方向けに、Go言語テンプレートのif文の基本的な使い方から、andやorを使った複数条件の指定方法まで、わかりやすく解説していきます。&lt;/p&gt;</description><dc:creator>もふもふ</dc:creator><media:content url="https://mome-n.com/images/content-eye-catch/f1712c468c968220.png" medium="image"><media:title type="html">meta image</media:title></media:content><category>template</category><category>golang</category></item><item><title>Go言語のテンプレート機能「range」の使い方を初心者向けに解説</title><link>https://mome-n.com/posts/go-template-range/</link><pubDate>Thu, 06 Mar 2025 22:00:00 +0900</pubDate><atom:modified>Wed, 07 Jan 2026 23:36:43 +0900</atom:modified><guid>https://mome-n.com/posts/go-template-range/</guid><description>&lt;div class="heading-container"&gt;
&lt;h2 id="まえがき"&gt;
&lt;span class="heading-text"&gt;まえがき&lt;/span&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Go言語のテンプレート機能は、WebアプリケーションやCLIツールなどでHTMLやテキストを動的に生成する際に非常に便利です。その中でも特に頻繁に使われるのが「range」という機能です。しかし、初心者の方にとっては少し分かりにくい部分もありますよね。&lt;/p&gt;</description><dc:creator>もふもふ</dc:creator><media:content url="https://mome-n.com/images/content-eye-catch/5226f849946f46be.png" medium="image"><media:title type="html">meta image</media:title></media:content><category>template</category><category>golang</category></item><item><title>Go言語のテンプレート機能を初心者向けに解説</title><link>https://mome-n.com/posts/go-template/</link><pubDate>Thu, 06 Mar 2025 21:30:00 +0900</pubDate><atom:modified>Wed, 07 Jan 2026 23:36:43 +0900</atom:modified><guid>https://mome-n.com/posts/go-template/</guid><description>&lt;div class="heading-container"&gt;
&lt;h2 id="まえがき"&gt;
&lt;span class="heading-text"&gt;まえがき&lt;/span&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Go言語には、HTMLやテキストを動的に生成するための便利なテンプレート機能があります。テンプレート機能を使うことで、コードと表示内容を分離し、メンテナンス性や再利用性を高めることができます。今回は初心者の方にもわかりやすく、Go言語のテンプレート機能について基本的な使い方から実用的な使い方、利点、注意点まで詳しく解説していきます。&lt;/p&gt;</description><dc:creator>もふもふ</dc:creator><media:content url="https://mome-n.com/images/content-eye-catch/03dd18455c7f46e6.png" medium="image"><media:title type="html">meta image</media:title></media:content><category>template</category><category>golang</category></item></channel></rss>