来个会golang吴彦祖,有个库下载不了
https://github.com/crawlab-team/crawlab-sdkpackage mainimport ( "time" sdk "github.com/crawlab-team/crawlab-sdk" "github.com/crawlab-team/crawlab-sdk/entity")func main() { item := entity.Result{ "hello": "world", } sdk.SaveItem(item) time.Sleep(5 * time.Second)}
这个库 tidy 的出错
PS D:\workspace\golang\spider\ceshi> go mod tidygo: finding module for package github.com/crawlab-team/crawlab-sdk/entitygo: finding module for package github.com/crawlab-team/crawlab-sdkceshi imports github.com/crawlab-team/crawlab-sdk: module github.com/crawlab-team/crawlab-sdk@latest found (v0.3.2), but does not contain package github.com/crawlab-team/crawlab-sdkceshi imports github.com/crawlab-team/crawlab-sdk/entity: module github.com/crawlab-team/crawlab-sdk@latest found (v0.3.2), but does not contain package github.com/crawlab-team/crawlab-sdk/entity 绑定,不会,交给楼下 难道是go版本的问题?楼主本地go 什么版本 设个环境变量GOPROXY 我是吴彦祖,可是我帮不了你 1.17你们能下载? 是下载问题 不应该直接 tidy就能下载来吗 你能打开entity这个目录? 明显就是压根没有这玩意 他这个tidy的时候错误意思我不理解 感觉是模块问题,我用的低版本的也报错
页:
[1]