github.com/essentialkaos/go-linenoise (go): Package linenoise wraps the linenoise library (https://github.com/antirez/linenoise).  The package is imported with "go-" prefix  Simple readline usage:  Adding lines to history, you could simply do this for every line you read.
Keywords: golang|linenoise|readline