func openLinerHistory(line *liner.State) { if f, err := os.Open(historyFilename); err == nil { line.ReadHistory(f) f.Close() } }
func (r *REPL) loadHistory(prompt *liner.State) { if f, err := os.Open(r.historyPath); err == nil { prompt.ReadHistory(f) f.Close() } }