# Using printf to debug

**URL:** <https://discourse.gohugo.io/t/using-printf-to-debug/6868>\
**Category:** support\
**Created:** [June 5, 2017, 4:18pm UTC](https://discourse.gohugo.io/t/using-printf-to-debug/6868 "2017-06-05T16:18:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![angel-li](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@angel-li](https://discourse.gohugo.io/u/angel-li)\
**Post date:** [June 5, 2017, 4:18pm UTC](https://discourse.gohugo.io/t/using-printf-to-debug/6868/1 "2017-06-05T16:18:53Z")

</div>

How is one supposed to format the output from printf “%#”? if one just adds that line to a template the resulting string needs some serious formatting to make it readable.

---

<div class="post-metadata">

**Author:** ![moorereason](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/moorereason/32/592_2.png) [@moorereason](https://discourse.gohugo.io/u/moorereason)\
**Post date:** [June 5, 2017, 10:38pm UTC](https://discourse.gohugo.io/t/using-printf-to-debug/6868/2 "2017-06-05T22:38:13Z")

</div>

We’re using the Go `fmt` package for `printf`. See the verbs in [the Go docs](https://golang.org/pkg/fmt/). We don’t offer a “pretty print” function.
