mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-10-13 03:37:12 +02:00
refactor: optimize JSON indent output format (#236)
This commit is contained in:
1 parent
07561f56fa
commit
53e9447713
1 file changed
+1
-1
@@ -32,7 +32,7 @@ func (o *outPutter) Write(data Source, writer io.Writer) error {
|
||||
switch o.json {
|
||||
case true:
|
||||
encoder := json.NewEncoder(writer)
|
||||
encoder.SetIndent(" ", " ")
|
||||
encoder.SetIndent("", " ")
|
||||
encoder.SetEscapeHTML(false)
|
||||
return encoder.Encode(data)
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user