Downloading go package from personal server

xuanbao · · 1471 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I was browsing Github when I came across <a href="https://github.com/DHowett/go-plist" rel="nofollow">go-plist</a>, in the instructions, it tells you to install by <code>go get go get howett.net/plist</code>. </p> <p>How does he do this?</p> <p>One of the files is called <code>fuzz.go</code>, but when I visit <a href="http://howett.net/plist/fuzz.go" rel="nofollow">http://howett.net/plist/fuzz.go</a>, it 404&#39;s.</p> <hr/>**评论:**<br/><br/>ctcherry: <pre><p>This section of the go documentation explains how go get can use different protocols to fetch packages: <a href="https://golang.org/cmd/go/#hdr-Remote_import_paths" rel="nofollow">https://golang.org/cmd/go/#hdr-Remote_import_paths</a></p> <p>As a first step, it&#39;s requesting the URL <a href="http://howett.net/plist?go-get=1" rel="nofollow">http://howett.net/plist?go-get=1</a> then it is looking for a &#34;go-import&#34; meta tag, which in this case points to a git repo go get can clone from.</p></pre>ipgof: <pre><p>Thank you! That really helped clear things up.</p></pre>

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

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