Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyReg = regexp.MustCompile(keyRegex) FilterReg = regexp.MustCompile(filterRegex) SelectionReg = regexp.MustCompile(selectionRegex) CountReg = regexp.MustCompile(countRegex) SliceReg = regexp.MustCompile(sliceRegex) )
View Source
var Conf = &JPathConf{ Expr: ".", Unwrap: false, Table: false, Compress: false, Indent: 2, Channel: make(chan []byte, 1000), Headers: nil, }
View Source
var ErrorMessage = map[ErrorCode]string{ Success: "", InvalidJson: "invalid json, aborting", InvalidExpr: "invalid expression, aborting", FileError: "file not json or unreadable, aborting", UnknownDataType: "unknown data type in json object", UnmarshalError: "error while unmarshalling json into map", UnprintableData: "data not printable", UnprintableTable: "data not printable in a table format, use without -t option", NumberError: "not a number", }
Functions ¶
func ExitWithError ¶
func ExitWithError(code ErrorCode)
func ExitWithMessage ¶
func ExitWithMessage(msg string)
func WrapIntoArray ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.