MakeDecoder returns decoder for the input data
(data []byte)
| 53 | |
| 54 | // MakeDecoder returns decoder for the input data |
| 55 | func MakeDecoder(data []byte) Decoder { |
| 56 | return Decoder{ |
| 57 | scanner: Scanner{data: data}, |
| 58 | state: (*Decoder).stateValue, |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | // Pos returns current input position. |
| 63 | func (d *Decoder) Pos() int { |
no outgoing calls
no test coverage detected
searching dependent graphs…