Debian Codegraph @

docs/content/en/functions/debug/Dump.md

raw
1 ---
2 title: debug.Dump
3 description: Returns an object dump as a string.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: []
9 returnType: string
10 signatures: [debug.Dump VALUE]
11 ---
12
13 ```go-html-template
14 <pre>{{ debug.Dump hugo.Data.books }}</pre>
15 ```
16
17 ```json
18 [
19 {
20 "author": "Victor Hugo",
21 "rating": 4,
22 "title": "The Hunchback of Notre Dame"
23 },
24 {
25 "author": "Victor Hugo",
26 "rating": 5,
27 "title": "Les Misérables"
28 }
29 ]
30 ```
31
32 > [!NOTE]
33 > Output from this function may change from one release to the next. Use for debugging only.