We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
平台: OSX 10.15.2 GO: go1.12.5 darwin/amd64 代码分支: master
步骤:
报错信息如下:
$ go build go: finding golang.org/x/time/rate latest go: finding golang.org/x/time latest go: finding golang.org/x/sys/cpu latest go: finding golang.org/x/sys latest github.com/TruthHun/CloudStore ../../../go/pkg/mod/github.com/!truth!hun/[email protected]/bos.go:56:9: args.ContentEncoding undefined (type *api.PutObjectArgs has no field or method ContentEncoding)
分析: 前往CloudStore,发现bos.go中确实引用了ContentEncoding,但是百度最新的SDK中已经去除了这个域: case "content-encoding": args.ContentEncoding = v
case "content-encoding": args.ContentEncoding = v
临时修改方法:
经过验证,如上修改后可以正常编译,相关功能测试并未进行。
The text was updated successfully, but these errors were encountered:
一样的问题
Sorry, something went wrong.
我也遇到这个问题了,上面老哥说的有用 可以是fork项目 或者 直接复制CloudStore项目到你的DocHub工程也可以 去除bos.go两行 /* case "content-encoding": args.ContentEncoding = v */ 修改项目的引用为你自己的,具体就是 github.com/TruthHun/DocHub/helper 一些通用的工具类帮组类以外的业务相关代码都修改为你项目的包
/* case "content-encoding": args.ContentEncoding = v */
No branches or pull requests
平台: OSX 10.15.2
GO: go1.12.5 darwin/amd64
代码分支: master
步骤:
报错信息如下:
分析:
前往CloudStore,发现bos.go中确实引用了ContentEncoding,但是百度最新的SDK中已经去除了这个域:
case "content-encoding": args.ContentEncoding = v
临时修改方法:
经过验证,如上修改后可以正常编译,相关功能测试并未进行。
The text was updated successfully, but these errors were encountered: