NewText creates a new text loader with an io.Reader.
(r io.Reader)
| 18 | |
| 19 | // NewText creates a new text loader with an io.Reader. |
| 20 | func NewText(r io.Reader) Text { |
| 21 | return Text{ |
| 22 | r: r, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | // Load reads from the io.Reader and returns a single document with the data. |
| 27 | func (l Text) Load(_ context.Context) ([]schema.Document, error) { |
no outgoing calls
searching dependent graphs…