gpt4 book ai didi

go - 尝试安装 BEEGO 时出错

转载 作者:IT王子 更新时间:2023-10-29 02:29:51 25 4
gpt4 key购买 nike

我是 GO 的新手,当我尝试在我的 Windows 8 桌面或带有 Debian 8 的 VirtualBox 中安装 framwork beego 时,我遇到了同样的错误:

sergi@odoo:~$ go get github.com/astaxie/beego
# github.com/astaxie/beego
work/src/github.com/astaxie/beego/tree.go:144: syntax error: unexpected range, expecting {
work/src/github.com/astaxie/beego/tree.go:155: syntax error: unexpected else, expecting semicolon or newline
work/src/github.com/astaxie/beego/tree.go:157: non-declaration statement outside function body
work/src/github.com/astaxie/beego/tree.go:158: non-declaration statement outside function body
work/src/github.com/astaxie/beego/tree.go:159: non-declaration statement outside function body
work/src/github.com/astaxie/beego/tree.go:160: syntax error: unexpected }
work/src/github.com/astaxie/beego/tree.go:257: syntax error: unexpected range, expecting {
work/src/github.com/astaxie/beego/tree.go:267: syntax error: unexpected else, expecting semicolon or newline or }
work/src/github.com/astaxie/beego/tree.go:283: syntax error: unexpected }

最佳答案

您似乎正在使用无法构建 beego 包的旧 Go 版本。

请注意,该包仅针对 go 1.5.1 进行了测试。所以尝试升级到 1.5.x 并尝试再次获取它。

https://github.com/astaxie/beego/blob/master/.travis.yml#L4

我很确定升级会解决您的问题。

关于go - 尝试安装 BEEGO 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34993894/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com