2022-05-02 09:35:49 +02:00

16 lines
240 B
Go

package photosapi
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())
}