()
| 159 | } |
| 160 | |
| 161 | func (p *inputParser) resetPayloadState() { |
| 162 | p.readingPayload = false |
| 163 | p.currentFn = nil |
| 164 | p.payloadBuf.Reset() |
| 165 | } |
| 166 | |
| 167 | func hasLinePrefix(line, keyword string) bool { |
| 168 | return line == keyword || strings.HasPrefix(line, keyword+" ") |
no test coverage detected