github.com/lukasmalkmus/interactive (go): Package interactive provides an easy to implement shell for simple, interactive commandline applications. It is build on top of the excellent https://golang.org/x/crypto/ssh/terminal package and tries to simplify the creation of small and simple applications which run in shell mode. It isn't very powerful (yet) but has enough features for basic usage. For example it shuts down gracefully on Ctrl^C and Ctrl^D.  This small application echos the entered text:  Returning an error instead of nil will print the error. Calling context.Close() will close the session with the specified exit code.
Keywords: go|golang|golang-library|shell|terminal