# Printf not working correctly

**URL:** <https://discourse.gohugo.io/t/printf-not-working-correctly/32932>\
**Category:** support\
**Created:** [May 17, 2021, 3:48pm UTC](https://discourse.gohugo.io/t/printf-not-working-correctly/32932 "2021-05-17T15:48:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swortain](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@swortain](https://discourse.gohugo.io/u/swortain)\
**Post date:** [May 17, 2021, 3:48pm UTC](https://discourse.gohugo.io/t/printf-not-working-correctly/32932/1 "2021-05-17T15:48:51Z")

</div>

hi,  
I met some problem when I tried to use printf to debug. for instance, I write {{ printf “%#v” $.Site.Menus }} in my index.html, nothing will push to my powershell running “hugo server”, but the content will shown in the webpage…  
I’ve no idea but it is not should be work like that right? 😂

 ![1621266036(1)](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/5/5494dba5c0ca212b25ded67e6138bbaa55e0bf9e.jpeg)

---

<div class="post-metadata">

**Author:** ![chrillek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/chrillek/32/19797_2.png) [@chrillek](https://discourse.gohugo.io/u/chrillek)\
**Post date:** [May 17, 2021, 4:01pm UTC](https://discourse.gohugo.io/t/printf-not-working-correctly/32932/2 "2021-05-17T16:01:05Z")

</div>

This is how it works. Use `warnf` to print to the terminal

---

<div class="post-metadata">

**Author:** ![swortain](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@swortain](https://discourse.gohugo.io/u/swortain)\
**Post date:** [May 18, 2021, 6:47am UTC](https://discourse.gohugo.io/t/printf-not-working-correctly/32932/3 "2021-05-18T06:47:13Z")

</div>

soga!!!  
thanks bro

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [May 20, 2021, 6:47am UTC](https://discourse.gohugo.io/t/printf-not-working-correctly/32932/4 "2021-05-20T06:47:44Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
