Set sets the ith JSON in JSONs.
(i int, j json.JSON)
| 47 | |
| 48 | // Set sets the ith JSON in JSONs. |
| 49 | func (js *JSONs) Set(i int, j json.JSON) { |
| 50 | var err error |
| 51 | js.scratch, err = json.EncodeJSON(js.scratch[:0], j) |
| 52 | if err != nil { |
| 53 | colexecerror.ExpectedError(err) |
| 54 | } |
| 55 | js.Bytes.Set(i, js.scratch) |
| 56 | } |
| 57 | |
| 58 | // Window creates a "window" into the receiver. It behaves similarly to |
| 59 | // Golang's slice, but the returned object is *not* allowed to be modified - it |
nothing calls this directly
no test coverage detected