What is the best tool for restarting Go HTTP server when files change?

xuanbao · · 319 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I remember finding a really good one a few weeks ago but can&#39;t remember what it was called. My googlefu is failing me. Does anyone have any recommendations??</p> <hr/>**评论:**<br/><br/>mr-bosley: <pre><p>This is what I use. Works well.. <a href="https://github.com/codegangsta/gin" rel="nofollow">https://github.com/codegangsta/gin</a></p></pre>b4ph0m37: <pre><p>I&#39;m just getting started with Go and was looking for a similar tool the other day. Settled on this one: <a href="https://github.com/githubnemo/CompileDaemon" rel="nofollow">https://github.com/githubnemo/CompileDaemon</a></p> <p>It&#39;s really basic with not a lot of bells and whistles but it does what I need at the moment without being overwhelming.</p></pre>hjkelly87: <pre><p>This is the only one that made sense to me quickly and helped me get my vanilla Go recompiling in a VM quickly. </p></pre>ChristophBerger: <pre><p>Was it maybe <code>realize</code>: </p> <p><a href="https://www.reddit.com/r/golang/comments/76zg1l/realize_15_manage_your_golang_workflow_with_ease/" rel="nofollow">https://www.reddit.com/r/golang/comments/76zg1l/realize_15_manage_your_golang_workflow_with_ease/</a></p> <p>and</p> <p><a href="https://github.com/tockins/realize" rel="nofollow">https://github.com/tockins/realize</a></p></pre>spencercdixon: <pre><p>Thank you!!! Realize was what I was looking for. Much appreciated</p></pre>SupersonicSpitfire: <pre><p>The best option for Linux is inotify, but this has an upper limit of the number of files that can be watched. This limit is quickly reached on macOS (I believe it is as low as 256). On Windows, there is no equivalent to inotify, as far as I know. The alternative to these is to loop through all the files &#34;manually&#34; and check if they changed since last time.</p></pre>

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

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