登录
首页 >  Golang >  Go问答

树莓派无法运行Golang代码因为uuid包问题

来源:stackoverflow

时间:2024-02-29 16:03:19 439浏览 收藏

在IT行业这个发展更新速度很快的行业,只有不停止的学习,才不会被行业所淘汰。如果你是Golang学习者,那么本文《树莓派无法运行Golang代码因为uuid包问题》就很适合你!本篇内容主要包括##content_title##,希望对大家的知识积累有所帮助,助力实战开发!

问题内容

一个月前我在树莓派上使用 go,没有任何问题。今天我开始了我的旧脚本,首先,它像以前一样工作,但突然出了问题,所以我重新安装了 go 和 gobot,但现在我无法再运行我的脚本,当我使用 go run 时,我收到此错误消息。 命令

'# github.com/gobuffalo/uuid
/home/pi/go/pkg/mod/github.com/gobuffalo/[email protected]+incompatible/generator.go:32:13: undefined: uuid.NewV2
/home/pi/go/pkg/mod/github.com/gobuffalo/[email protected]+incompatible/uuid.go:41:7: undefined: uuid.V2

正确答案


我只需点击此命令行即可解决此问题:

获取 gobot.io/x/gobot@dev

以上就是《树莓派无法运行Golang代码因为uuid包问题》的详细内容,更多关于的资料请关注golang学习网公众号!

声明:本文转载于:stackoverflow 如有侵犯,请联系study_golang@163.com删除
相关阅读
更多>
最新阅读
更多>
课程推荐
更多>