func Load(read func(r io.Reader) (int, error)) error {
	f, err := file(os.Open)
	if err != nil {
		return nil
	}
	_, err = read(f)
	if err != nil {
		return err
	}
	return f.Close()
}
Load loads any saved command history.
package history
import (
	"io"
	"os"
)