Create creates a hint file for writing
(path string)
| 415 | |
| 416 | // Create creates a hint file for writing |
| 417 | func (w *HintFileWriter) Create(path string) error { |
| 418 | file, err := os.Create(path) |
| 419 | if err != nil { |
| 420 | return err |
| 421 | } |
| 422 | |
| 423 | w.file = file |
| 424 | w.writer = bufio.NewWriter(file) |
| 425 | |
| 426 | return nil |
| 427 | } |
| 428 | |
| 429 | // Write writes a hint entry to the file |
| 430 | func (w *HintFileWriter) Write(entry *HintEntry) error { |
no outgoing calls