Parse parses the given template and returns an error.
(text string)
| 57 | |
| 58 | // Parse parses the given template and returns an error. |
| 59 | func (j *JSONPath) Parse(text string) error { |
| 60 | var err error |
| 61 | j.parser, err = Parse(j.name, text) |
| 62 | return err |
| 63 | } |
| 64 | |
| 65 | // Execute bounds data into template and writes the result. |
| 66 | func (j *JSONPath) Execute(wr io.Writer, data interface{}) error { |