reset prepares the scanner for use. It must be called before calling s.step.
()
| 114 | // reset prepares the scanner for use. |
| 115 | // It must be called before calling s.step. |
| 116 | func (s *scanner) reset() { |
| 117 | s.step = stateBeginValue |
| 118 | s.parseState = s.parseState[0:0] |
| 119 | s.err = nil |
| 120 | s.endTop = false |
| 121 | } |
| 122 | |
| 123 | // eof tells the scanner that the end of input has been reached. |
| 124 | // It returns a scan status just as s.step does. |
no outgoing calls
no test coverage detected