Go as a language for Linux/BSD interactive terminal applications

agolangf · · 679 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Dear GoLang redditors: is it possible to create feature-rich interactive terminal applications for GNU+Linux and *BSD (mostly FreeBSD) in Go? How is the state of the libraries for common administration tasks? I know that beast applications like Docker are made with Go but while they sport a great command line parsing I didn&#39;t see yet an ncurse-like application written in Go. Thanks everyone for your answers.</p> <hr/>**评论:**<br/><br/>jehiah: <pre><p>check out <a href="https://github.com/gizak/termui">https://github.com/gizak/termui</a></p></pre>msx700: <pre><p>Crap, I started to drool so hard I&#39;m now about to die of dehydration. Thanks.</p></pre>gogolang: <pre><p>Wow, this is freaking awesome! I&#39;ll never have a good use case for this, but I wish I did!</p></pre>divan0: <pre><p>I&#39;ve found good use case for golang apps quick monitoring app: <a href="https://github.com/divan/expvarmon" rel="nofollow">https://github.com/divan/expvarmon</a></p></pre>Bromlife: <pre><p>I really wish I had a use case for this that html/template didn&#39;t suit better. :/</p></pre>YEPHENAS: <pre><p>Termbox-go is the base library for ncurses-like applications in Go: <a href="https://godoc.org/github.com/nsf/termbox-go">https://godoc.org/github.com/nsf/termbox-go</a></p></pre>Exaltred: <pre><p>Bump for termbox-go, fantastic library, but takes a bit of learning if you&#39;re exploring without any prior terminal pseudo-graphics experience. </p> <p>It may not be perfect, but here&#39;s a little termbox-go snake game: <a href="https://github.com/pnd-tech-club/Seans-Go-Playground/blob/master/snake.go" rel="nofollow">https://github.com/pnd-tech-club/Seans-Go-Playground/blob/master/snake.go</a></p></pre>hoffentlich: <pre><p>There&#39;s also gocui <a href="https://github.com/jroimartin/gocui" rel="nofollow">https://github.com/jroimartin/gocui</a> which is also based on termbox-go.</p></pre>Jamo008: <pre><p>If you&#39;re really keen, you can use raw ANSI codes <a href="https://github.com/jpillora/ssh-tron" rel="nofollow">https://github.com/jpillora/ssh-tron</a> Useful if you&#39;re aiming to use the terminal as a 2D canvas.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

679 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传