<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Debug functions on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/functions/debug/</link><description>Recent content in Debug functions on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/functions/debug/index.xml" rel="self" type="application/rss+xml"/><item><title>debug.Dump</title><link>https://v0-122-0--gohugoio.netlify.app/functions/debug/dump/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/debug/dump/</guid><description>{{ $data := &amp;#34;&amp;#34; }} {{ $p := &amp;#34;data/books.json&amp;#34; }} {{ with resources.Get $p }} {{ $opts := dict &amp;#34;delimiter&amp;#34; &amp;#34;,&amp;#34; }} {{ $data = . | transform.Unmarshal $opts }} {{ else }} {{ errorf &amp;#34;Unable to get resource %q&amp;#34; $p }} {{ end }} &amp;lt;pre&amp;gt;{{ debug.Dump $data }}&amp;lt;/pre&amp;gt; []interface {}{ map[string]interface {}{ &amp;#34;author&amp;#34;: &amp;#34;Victor Hugo&amp;#34;, &amp;#34;rating&amp;#34;: 5.0, &amp;#34;title&amp;#34;: &amp;#34;Les Misérables&amp;#34;, }, map[string]interface {}{ &amp;#34;author&amp;#34;: &amp;#34;Victor Hugo&amp;#34;, &amp;#34;rating&amp;#34;: 4.0, &amp;#34;title&amp;#34;: &amp;#34;The Hunchback of Notre Dame&amp;#34;, }, } Output from this function may change from one release to the next.</description></item><item><title>debug.Timer</title><link>https://v0-122-0--gohugoio.netlify.app/functions/debug/timer/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/debug/timer/</guid><description>New in v0.120.0 Use the debug.Timer function to determine execution time for a block of code, useful for finding performance bottle necks in templates.
The timer starts when you instantiate it, and stops when you call its Stop method.
{{ $t := debug.Timer &amp;#34;TestSqrt&amp;#34; }} {{ range seq 2000 }} {{ $f := math.Sqrt . }} {{ end }} {{ $t.Stop }} Use the --logLevel info command line flag when you build the site.</description></item></channel></rss>