Go Downloader in Terminal

polaris · · 390 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hey!</p> <p>Scratching my own itch a bit, I created a quick tool that extracts the data from the <a href="https://golang.org/dl/">https://golang.org/dl/</a> site with the purpose to download, extract and &#34;install&#34; Go very easily. Screenshot: <a href="http://i.imgur.com/pK4XmvP.png">http://i.imgur.com/pK4XmvP.png</a></p> <p>Right now it just grabs the info you see, can download selected file and extract it. Navigation through the different versions works too. Tab changes between the version and table view there. Up and down arrow to navigate the list.</p> <p>For some reason, it doesn&#39;t want to update the view for the downloading part while downloading, but you have to move around with the arrow keys for it to update. And, it&#39;s buggy regarding resizing the terminal window. Still, it works fine for my purposes for now. But, before I put more effort into it, I thought I see what people out there think about it, to see it would be worth my trouble to spend more time on this little utility.</p> <p>It also extracts into a &#34;v1.8&#34; folder, and I was thinking that this tool could also create some environment setup making it easy to change versions. Making this tool very easy to upgrade/change Go versions is the idea basically!</p> <p>And yes, I know a simple wget and extract command can do part of this work here, but the nifty thing is that it gets the latest data from the site as soon as you start it from the command line and it will let you get any version locally very quickly.</p> <p>Anyway, please share your thoughts.</p> <p>Thanks!</p> <hr/>**评论:**<br/><br/>tjyang: <pre><p>No need to wait until it is bug-free to release it on github. Looks very useful to me already. </p></pre>ar1819: <pre><p>You should post it already - it looks like a fine tool and with recent switch to default GOPATH this would also easy the pain of manually updating Go installation. </p> <p>Also - while I&#39;m on the subject - do not forget to check hash of file you had downloaded - they are there for a reason a it would be a additional plus point for your tool. </p></pre>tgulacsi: <pre><p>Gustavo Niemeyer created the godeb tool long ago, which lists the available versions, and allows to download and convert it into a .deb package on the fly. It&#39;s very convenient for Debian-based repos.</p></pre>

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

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