return whether, at the current depth, the value being decoded will be emitted to stream
()
| 172 | // return whether, at the current depth, the value being decoded will |
| 173 | // be emitted to stream |
| 174 | func (d *Decoder) willEmit() bool { |
| 175 | if d.emitRecursive { |
| 176 | return d.depth >= d.emitDepth |
| 177 | } |
| 178 | return d.depth == d.emitDepth |
| 179 | } |
| 180 | |
| 181 | // any used to decode any valid JSON value, and returns an |
| 182 | // interface{} that holds the actual data |
no outgoing calls
no test coverage detected