(v interface{}, stream ...io.Writer)
| 631 | } |
| 632 | |
| 633 | func printJSON(v interface{}, stream ...io.Writer) { |
| 634 | // Can't use prettyjson util issue https://github.com/hokaccha/go-prettyjson/issues/1 is fixed |
| 635 | //output, _ := prettyjson.Marshal(v) |
| 636 | // |
| 637 | //if len(stream) > 0 { |
| 638 | // fmt.Fprintf(stream[0], string(output)) |
| 639 | //} else { |
| 640 | // fmt.Fprintf(color.Output, string(output)) |
| 641 | //} |
| 642 | printJsonNoColor(v, stream...) |
| 643 | } |
| 644 | |
| 645 | func printJsonNoColor(decoded interface{}, stream ...io.Writer) { |
| 646 | var output bytes.Buffer |
no test coverage detected