<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'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'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 "go-import" 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
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传