Display output in human readable format (#95)
diff --git a/cmd/output.go b/cmd/output.go index f221e03..9a02369 100644 --- a/cmd/output.go +++ b/cmd/output.go
@@ -46,7 +46,12 @@ value = string(jsonStr) } } - return fmt.Sprintf("%v", value) + switch value.(type) { + case float64, float32: + return fmt.Sprintf("%.f", value) + default: + return fmt.Sprintf("%v", value) + } } func printJSON(response map[string]interface{}) {