Open opens a hint file for reading
(path string)
| 223 | |
| 224 | // Open opens a hint file for reading |
| 225 | func (r *HintFileReader) Open(path string) error { |
| 226 | file, err := os.Open(path) |
| 227 | if err != nil { |
| 228 | return err |
| 229 | } |
| 230 | |
| 231 | r.file = file |
| 232 | r.reader = bufio.NewReader(file) |
| 233 | |
| 234 | return nil |
| 235 | } |
| 236 | |
| 237 | // Read reads a hint entry from the file |
| 238 | func (r *HintFileReader) Read() (*HintEntry, error) { |
no outgoing calls