<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Fmt functions on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/functions/fmt/</link><description>Recent content in Fmt functions on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/functions/fmt/index.xml" rel="self" type="application/rss+xml"/><item><title>fmt.Errorf</title><link>https://v0-122-0--gohugoio.netlify.app/functions/fmt/errorf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/fmt/errorf/</guid><description>The documentation for Go&amp;rsquo;s fmt package describes the structure and content of the format string.
The errorf function evaluates the format string, then prints the result to the ERROR log and fails the build.
{{ errorf &amp;#34;The %q shortcode requires a src parameter. See %s&amp;#34; .Name .Position }} Use the erroridf function to allow optional suppression of specific errors.</description></item><item><title>fmt.Erroridf</title><link>https://v0-122-0--gohugoio.netlify.app/functions/fmt/erroridf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/fmt/erroridf/</guid><description>The documentation for Go&amp;rsquo;s fmt package describes the structure and content of the format string.
The erroridf function evaluates the format string, then prints the result to the ERROR log and fails the build. Unlike the errorf function, you may suppress errors logged by the erroridf function by adding the message ID to the ignoreErrors array in your site configuration.
This template code:
{{ erroridf &amp;#34;error-42&amp;#34; &amp;#34;You should consider fixing this.</description></item><item><title>fmt.Print</title><link>https://v0-122-0--gohugoio.netlify.app/functions/fmt/print/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/fmt/print/</guid><description>{{ print &amp;#34;foo&amp;#34; }} → foo {{ print &amp;#34;foo&amp;#34; &amp;#34;bar&amp;#34; }} → foobar {{ print (slice 1 2 3) }} → [1 2 3]</description></item><item><title>fmt.Printf</title><link>https://v0-122-0--gohugoio.netlify.app/functions/fmt/printf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/fmt/printf/</guid><description>The documentation for Go&amp;rsquo;s fmt package describes the structure and content of the format string.
{{ $var := &amp;#34;world&amp;#34; }} {{ printf &amp;#34;Hello %s.&amp;#34; $var }} → Hello world. {{ $pi := 3.14159265 }} {{ printf &amp;#34;Pi is approximately %.2f.&amp;#34; $pi }} → 3.14 Use the printf function with the safeHTMLAttr function:
{{ $desc := &amp;#34;Eat at Joe&amp;#39;s&amp;#34; }} &amp;lt;meta name=&amp;#34;description&amp;#34; {{ printf &amp;#34;content=%q&amp;#34; $desc | safeHTMLAttr }}&amp;gt; Hugo renders this to:</description></item><item><title>fmt.Println</title><link>https://v0-122-0--gohugoio.netlify.app/functions/fmt/println/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/fmt/println/</guid><description>{{ println &amp;#34;foo&amp;#34; }} → foo\n</description></item><item><title>fmt.Warnf</title><link>https://v0-122-0--gohugoio.netlify.app/functions/fmt/warnf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/fmt/warnf/</guid><description>The documentation for Go&amp;rsquo;s fmt package describes the structure and content of the format string.
The warnf function evaluates the format string, then prints the result to the WARNING log. Hugo prints each unique message once to avoid flooding the log with duplicate warnings.
{{ warnf &amp;#34;The %q shortcode was unable to find %s. See %s&amp;#34; .Name $file .Position }} To prevent suppression of duplicate messages when using warnf for debugging, make each message unique with the math.</description></item></channel></rss>