Init initializes a new Scanner that will process str.
(str string)
| 86 | |
| 87 | // Init initializes a new Scanner that will process str. |
| 88 | func (s *Scanner) Init(str string) { |
| 89 | *s = Scanner{ |
| 90 | in: str, |
| 91 | pos: 0, |
| 92 | // Preallocate some buffer space for identifiers etc. |
| 93 | bytesPrealloc: make([]byte, len(str)), |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | // RetainComments instructs the scanner to collect SQL comments in the Comments |
| 98 | // field. |
no outgoing calls
no test coverage detected