Read returns the contents of the file for the given URI. If no file exists at the path or the URI is of an invalid type, an error is returned.
(ctx context.Context, u uri.URI)
| 113 | // If no file exists at the path or the URI is of an invalid type, an error is |
| 114 | // returned. |
| 115 | func (m *Manager) Read(ctx context.Context, u uri.URI) (doc Document, err error) { |
| 116 | return m.tryReading(ctx, u, true) |
| 117 | } |
| 118 | |
| 119 | // Read returns the contents of the file for the given URI. |
| 120 | // |