Package liner implements a simple command line editor, inspired by linenoise (https://github.com/antirez/linenoise/). This package supports WIN32 in addition to the xterm codes supported by everything else.
"strings" "github.com/peterh/liner" "github.com/siddontang/goredis" )
var ( line *liner.State historyPath = "/tmp/ledis-cli" )
flag.Parse() line = liner.NewLiner() defer line.Close()