NewParserFromString returns a new instance of parser from a string.
(s string)
| 108 | |
| 109 | // NewParserFromString returns a new instance of parser from a string. |
| 110 | func NewParserFromString(s string) *Parser { |
| 111 | return NewParser(bytes.NewBufferString(s)) |
| 112 | } |
| 113 | |
| 114 | // NewParser returns a new instance of parser. |
| 115 | func NewParser(r io.Reader) *Parser { |
searching dependent graphs…