2022-02-05 18:39:26 +01:00

16 lines
234 B
Go

package api
import (
"bytes"
"encoding/json"
)
func (s *Service) Dump(o interface{}) {
b := bytes.NewBuffer([]byte{})
enc := json.NewEncoder(b)
enc.SetIndent("", " ")
enc.Encode(o)
s.LogOk.Printf("Dump", "%s", b.Bytes())
}