- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
我正在尝试解决 Orielly 一书中的 Decentralized Applications 中提供的示例。
go-ipfs
包似乎已经过时,新版本不能正常工作。所以我手动应对旧版本并尝试编译 go-kerala。
尽管某些文件夹存在于路径中,但我收到错误消息。
例如,/home/rajkumar/go/src/github.com/ipfs/go-
在我手动复制旧版本文件后出现,但 go-get 命令仍然出错。
ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58(来自 $GOPATH)
$go get -d github.com/llSourcell/kerala
package code.google.com/p/go.net/context: unrecognized import path
"code.google.com/p/go.net/context" (parse
https://code.google.com/p/go.net/context?go-get=1: no go-import meta
tags (meta tag github.com/golang/go did not match import path
code.google.com/p/go.net/context))
package github.com/ipfs/go-
ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58: cannot find
package "github.com/ipfs/go-
ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58" in any of:
/usr/local/go/src/github.com/ipfs/go-
ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58 (from $GOROOT)
/home/rajkumar/go/src/github.com/ipfs/go-
ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58 (from $GOPATH)
package github.com/ipfs/go-
ipfs/Godeps/_workspace/src/github.com/jbenet/go-ctxgroup: cannot find
package "github.com/ipfs/go-
ipfs/Godeps/_workspace/src/github.com/jbenet/go-ctxgroup" in any of:
/usr/local/go/src/github.com/ipfs/go-
ipfs/Godeps/_workspace/src/github.com/jbenet/go-ctxgroup (from $GOROOT)
/home/rajkumar/go/src/github.com/ipfs/go-
ipfs/Godeps/_workspace/src/github.com/jbenet/go-ctxgroup (from $GOPATH)
package github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore: cannot find
package "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore" in any of:
/usr/local/go/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore (from $GOROOT)
/home/rajkumar/go/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore (from $GOPATH)
package github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync: cannot find package "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync" in any of:
/usr/local/go/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync (from $GOROOT)
/home/rajkumar/go/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync (from $GOPATH)
我是否缺少任何解决错误的步骤。
最佳答案
您复制了无法编译的过时代码。
code.google.com/p/go.net/context
code.google.com 已关闭,这是无法再使用的旧导入路径。该错误告诉您出了什么问题,该路径无法导入,因为它不存在(尝试在浏览器中访问它)。
您可能会花很多时间修复旧的导入,结果却发现包已经更改并且无法再编译,所以我建议从最新版本开始并联系 github 的作者。 github 上的 com/ipfs/go-ipfs,或者选择另一个包来使用。
关于戈兰错误: `cannot find package` when running go get,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46375642/
我正在尝试阅读此内容:https://blog.golang.org/error-handling-and-go特别是标题为简化重复错误处理的部分。 他们像这样调用http.Handle: func
我正在尝试这个 Go 小例子 https://github.com/jakecoffman/golang-rest-bootstrap ,到目前为止一切顺利。 我正在尝试添加 CORS 以允许我的前端
我正在尝试编写一个基本的 http 服务器示例。我可以 curl localhost:8080,但无法通过客户端脚本使用 http.Get("127.0.0.1:8080") 联系服务器。我做错了什么
我有 - Go 作为监听器 http 和 https 到服务器。 Nginx 配置为处理传入的 http + https 请求。证件有序。使用单独的服务器可以完美地运行在 https 协议(proto
我有一个结构: type Name struct { hexID string age uint8 } 检查 hexID 字段是否为有效的十六进制字符串的最简单方法是什么?如果没有 -
我正在使用 gin 框架,当用户已经登录时,我将登录重定向到主页。它在主页上显示了这个 html 元素。 Found "." 如何从应用中禁用该元素? 这是我的应用代码。 func GetSignIn
我正在使用 gin 框架。我在主函数中像这样打开 sqlite 数据库 func main() { ... db, err := sql.Open("sqlite3", "./libreread.db
我正在尝试将 golang docker 部署到 AWS。 我使用预定义的 FROM golang:1.4.2-onbuild eb 本地运行 - 运行良好,没问题。 如果我压缩并上传 zip 文件,
我已经阅读了一些 questions关于 go 和 nginx 但我没有找到任何答案。 我认为(我不是专家)在 net/http go 服务器前使用 nginx 作为反向代理与直接使用 nginx 托
这个问题继续讨论开始 here 。我发现 HTTP 响应正文无法被解码为 JSON 对象,因为后者的 deflate 压缩。现在我想知道如何用Golang进行解压。我将不胜感激任何能够显示我的代码中的
我正在尝试编写一个代码,它对文件进行并发读取并将内容发布到一个 channel 。 Here是我的代码的链接,代码: func main() { bufferSize := int64(10)
软件环境:Win10,Goland。 去版本:go1.9.1 windows/amd64.协议(protocol)——版本:libprotoc 3.5.1当我执行命令时。结果如下 protoc -I
这是我尝试连接 SQL Server 时的代码: connString := fmt.Sprintf("server=%s;user id=%s;password=%s¡port=%s;databas
我是一名优秀的程序员,十分优秀!