NewFromString creates new Tokenizer from the provided string.
(str string)
| 25 | |
| 26 | // NewFromString creates new Tokenizer from the provided string. |
| 27 | func NewFromString(str string) *Tokenizer { |
| 28 | return New(strings.NewReader(str)) |
| 29 | } |
| 30 | |
| 31 | // NewFromBytes creates new Tokenizer from the provided bytes slice. |
| 32 | func NewFromBytes(b []byte) *Tokenizer { |
searching dependent graphs…