|
@@ -13,7 +13,9 @@ import (
|
|
|
func showExamples() {
|
|
|
enc := json.NewEncoder(os.Stderr)
|
|
|
for i, example := range examples {
|
|
|
- fmt.Fprintf(os.Stderr, "\nExample %d:\n%s\n\n", i, example)
|
|
|
+ fmt.Fprintf(os.Stderr, "\nExample %d\n\nInput:\n\n", i)
|
|
|
+ formatting.PrettyPrint(example)
|
|
|
+ fmt.Fprintf(os.Stderr, "\nOutput:\n\n")
|
|
|
formatting.EncodeJSON(example, enc)
|
|
|
}
|
|
|
}
|