16 lines
240 B
Go
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())
|
|
}
|