func NewJQ(program string) (*JQ, error) { state := C.jq_init() jq := &JQ{program, state, C.jv_invalid()} if err := jq.compile(program); err != nil { jq.Close() return nil, err } return jq, nil }
// JvInvalid returns an invalid jv object without an error property func JvInvalid() *Jv { return &Jv{C.jv_invalid()} }