improve gutil.Dump

This commit is contained in:
John Guo
2021-11-18 15:20:37 +08:00
parent 57ccc13e0c
commit 712416f490
3 changed files with 278 additions and 184 deletions

View File

@ -179,10 +179,3 @@ func (j *Json) Dump() {
defer j.mu.RUnlock()
gutil.Dump(*j.p)
}
// Export returns `j` as a string with more manually readable.
func (j *Json) Export() string {
j.mu.RLock()
defer j.mu.RUnlock()
return gutil.Export(*j.p, gutil.ExportOption{})
}