I've tried the links you offered and test the source code 
<https://play.golang.org/p/SPw-eIBDBoA>.
However, it occurred fatal error.
I have no idea what causes the problem.
The error is as the following picture.

[image: Error.PNG]


Thank you very much!

Max


Brian Candler於 2020年4月17日星期五 UTC+8下午6時52分01秒寫道:
>
> 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/30c80be4-8629-4015-b666-bf2f373e8a3d%40googlegroups.com.

Reply via email to