登录
首页 >  Golang >  Go问答

获取 cloud.google.com/go/datastore 会为 golang.org/x/lint 提供格式错误的记录数据

来源:stackoverflow

时间:2024-04-22 22:09:29 173浏览 收藏

偷偷努力,悄无声息地变强,然后惊艳所有人!哈哈,小伙伴们又来学习啦~今天我将给大家介绍《获取 cloud.google.com/go/datastore 会为 golang.org/x/lint 提供格式错误的记录数据》,这篇文章主要会讲到等等知识点,不知道大家对其都有多少了解,下面我们就一起来看一吧!当然,非常希望大家能多多评论,给出合理的建议,我们一起学习,一起进步!

问题内容

我有一个 go 模块,正在尝试与 google cloud 商店集成。我正在使用 go v1.14。当我访问云数据存储时,出现以下错误。

go: cloud.google.com/go/datastore upgrade => v1.1.0
go get: cloud.google.com/go/[email protected] requires
    google.golang.org/[email protected] requires
    cloud.google.com/[email protected] requires
    golang.org/x/[email protected]/go.mod: verifying module: golang.org/x/[email protected]/go.mod: malformed record data

以下是我的 go.mod 文件的内容

module .com/

go 1.14

require (
    github.com/stretchr/testify v1.5.1
)

我不太明白这个错误。怎么理解呢?


解决方案


经过几个小时的努力,我发现清除本地缓存后尝试相同的方法是有效的。我不再遇到此异常。

到这里,我们也就讲完了《获取 cloud.google.com/go/datastore 会为 golang.org/x/lint 提供格式错误的记录数据》的内容了。个人认为,基础知识的学习和巩固,是为了更好的将其运用到项目中,欢迎关注golang学习网公众号,带你了解更多关于的知识点!

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