Well, it's always good to fix the errors :-)

In short, you'll need to get a string from termui, and then use fmt.Sscanf 
instead of fmt.Scanf.

A quick google for "go termui text input" turns up these as the first two 
hits:
https://github.com/gizak/termui/issues/34
https://github.com/gizak/termui/pull/129

They answer your question.  The second is a contributed text input widget 
which hasn't been merged into the mainline source, but you could use termui 
from this fork.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/beedaab4-bdec-455f-b551-117102477425%40googlegroups.com.

Reply via email to