
sdk 例子是从这里下载的: https://pan.baidu.com/union/doc/Fksg0sbcm#sdk%E8%8E%B7%E5%8F%96
在 file_metas.go ,import 引入了 [ icode.baidu.com/baidu/xpan/go-sdk/xpan/utils ]
尝试了直接访问这个全限定名网址,go get ,go install ,各类搜索,翻找他们文档等方式,还是没找到
请教帮忙看看, 这个 sdk 的例子是不是运行不起来?
1 xiaoyanbot OP 其他文档还引入了类似 ["icode.baidu.com/baidu/xpan/go-sdk/xpan/fileinfo"] 也是没找到 |
2 acehowxx 2022 年 6 月 4 日 via Android go mod tidy 试试 |
3 xiaoyanbot OP @acehowxx 没有 go mod 文件 |
4 ZeoKarl 2022 年 6 月 4 日 我估摸着应该是百度内网的东西. |
5 acehowxx 2022 年 6 月 4 日 via Android @xiaoyanbot 没有你不会 go mod init test 出来一个吗?没用过 go mod?? |
6 unifier 2022 年 6 月 4 日 |
7 xiaoyanbot OP @zacharyjia 这个仓库, 我搜到了。 不是这个文档里提到的库 |
8 xiaoyanbot OP @acehowxx 会用的。 是找不到里面的这个库: 提示是这个样子的: ~~~ go mod tidy go: finding module for package icode.baidu.com/baidu/xpan/go-sdk/xpan/download go: finding module for package icode.baidu.com/baidu/xpan/go-sdk/xpan/utils icode.baidu.com/baidu/xpan/go-sdk/xpan/utils: module icode.baidu.com/baidu/xpan/go-sdk/xpan/utils: Get "https://proxy.golang.org/icode.baidu.com/baidu/xpan/go-sdk/xpan/utils/@v/list": dial tcp 142.251.43.17:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. icode.baidu.com/baidu/xpan/go-sdk/xpan/download: module icode.baidu.com/baidu/xpan/go-sdk/xpan/download: Get "https://proxy.golang.org/icode.baidu.com/baidu/xpan/go-sdk/xpan/download/@v/list": dial tcp 142.251.43.17:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ~~~ |
9 acehowxx 2022 年 6 月 4 日 via Android @xiaoyanbot 你设 goproxy 没有,墙内拉 golang.org 的东西直接拉不下来。你这错误提示就是超时了拉不下来。要不就挂全局代理,要不就得设 goproxy 环境变量。 |
10 kirile 2022 年 6 月 4 日 ping 一下 这个域名就能看到是个内网 ip. @xiaoyanbot |