Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyList ¶ added in v0.2.710
func EmptyList(v interface{}) interface{}
EmptyList returns [] for a nil slice (other than raw JSON bytes), else v.
func JSON ¶
func JSON(v interface{}) error
JSON prints the value as indented JSON to stdout. A nil slice prints as [] (not null), so an empty list is still a list.
func PrintKeyValue ¶
func PrintKeyValue(label string, value interface{})
PrintKeyValue prints a styled key-value pair.
Types ¶
This section is empty.