diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-08-16 19:58:10 +0200 |
|---|---|---|
| committer | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-08-16 19:58:10 +0200 |
| commit | c36bb2ca2a82338a822c6962f3373809b4bed814 (patch) | |
| tree | d6cb54b7e9d7bf5742b06dedd6bf76eb09ea8385 /utils.go | |
| parent | d82e66800478219dd924c6969bd91dbfe004fc9d (diff) | |
add allowed domains feature
Diffstat (limited to 'utils.go')
| -rw-r--r-- | utils.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -11,3 +11,9 @@ func PrettyPrint(v any) { enc.SetIndent("", " ") enc.Encode(v) } + +func Print(v any) { + enc := json.NewEncoder(os.Stdout) + enc.SetEscapeHTML(false) + enc.Encode(v) +} |