A package to calculate the rise and set times for the Sun, Moon and twilight

polaris · · 448 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I created this package as a learning exercise. I&#39;m really enjoying using Go. For some reason it reminds me of the good old days (late 80&#39;s) when we were programming in Clipper.</p> <p>Code : <a href="https://github.com/exploded/riseset">https://github.com/exploded/riseset</a></p> <p>Demo website: <a href="http://mchugh.space/">http://mchugh.space/</a></p> <p>This is my first time using github, so if anything looks wrong please let me know.</p> <hr/>**评论:**<br/><br/>Epolevne: <pre><p>This is cool and makes me want to dig up some of my old code to find tidbits like this. </p> <p>I will note that the package isn&#39;t safe for concurrent use because of the globals. I&#39;m guessing it&#39;s related to the port, but that&#39;s a fundamental difference from QB to Go that would require a slight design change to make it more Go-ish. </p></pre>inanotherworld: <pre><p>Yes you&#39;re right - the original version had 2 Sub Routines (as opposed to functions) that were updating globals. I&#39;ll need to rearrange things a bit to fix that.</p></pre>

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

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