Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettyJSON ¶
PrettyJSON is a convenience function to pretty print a JSON string using json.MarshalIndent.
func QueryJSON ¶
func QueryJSON(o []interface{}, queryResult *QueryResult, queryStr string) error
QueryJson can query an unmarshalled json object with gojq.
Types ¶
type QueryResult ¶
type QueryResult struct {
Result []interface{}
}
type TableWriter ¶ added in v0.1.0
type TableWriter interface {
Write() error
}
func NewTableWriter ¶ added in v0.1.0
func NewTableWriter(headers []string, data [][]string, writer io.Writer) TableWriter
Click to show internal directories.
Click to hide internal directories.