TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The AWS SDK for Go is now 1.0

142 点作者 GeneticGenesis超过 9 年前

7 条评论

avitzurel超过 9 年前
I&#x27;ve used the SDK in the past (before the 1.0).<p>I am far from being a Go expert but you can see this has been written by Java developers.<p>The usage is so verbose and you need to pass pointers around all the time. Even when it&#x27;s clearly not changing the original instance (when passing by value would be enough).<p>If you compare it to another lib like goamz you can clearly see how easier it is to use comparing to the Amazon SDK.<p>There&#x27;s also an issue from June 4 that discusses this: <a href="https:&#x2F;&#x2F;github.com&#x2F;aws&#x2F;aws-sdk-go&#x2F;issues&#x2F;265" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;aws&#x2F;aws-sdk-go&#x2F;issues&#x2F;265</a><p>In my lib I ended up going with goamz, it was much simpler to use and required much less boilerplate.
评论 #10599384 未加载
评论 #10598526 未加载
评论 #10598570 未加载
评论 #10598508 未加载
评论 #10598590 未加载
评论 #10598938 未加载
评论 #10599508 未加载
评论 #10598482 未加载
评论 #10651299 未加载
评论 #10598509 未加载
donatj超过 9 年前
aws.String just to get a pointer to a string rubs me the wrong way. I guess that lets it be nillable but I still don&#x27;t like it.<p>I have been watching it&#x27;s development fairly closely, seeing their strange decisions, and hoping they would rectify them. They haven&#x27;t, and as a whole the API is not written &quot;the Go way&quot;. It&#x27;s written like they are fighting the language.<p>I assure you that in Go there are better solutions to much of this. I pray V2 to be better but if it&#x27;s anything like their other SDKs they&#x27;ll avoid breaking changes to the interface until its simply no longer reasonable.<p>Their PHP SDK is largely powered by magic getters, setters and method calls, and the methods therein are largely defined by a file describing the API. This works but is hardly ideal particularly for static analysis. I was at able with a PR to talk them into putting the method hints back at least.<p>You can really tell they were missing the magic in Go and working very hard to try to make it work in a somewhat similar fashion.
andrewstuart超过 9 年前
Full points to Amazon for not treating client SDK&#x27;s like some sort of third class afterthought. And double points for not just palming off client SDK responsibility to &quot;the open source community&quot;.<p>A cloud feature does not exist unless it is supported by the SDK that you program with.
评论 #10599404 未加载
krishnasrinivas超过 9 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;minio&#x2F;minio-go" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;minio&#x2F;minio-go</a> is a nice S3 Client library in Go
monksy超过 9 年前
Now introducing random 500s in Go!
elcct超过 9 年前
Great. I&#x27;ve been using it for the past few months. Documentation is terrible and there was quite a lot of breaking changes, but other than that it works... so I am okay with that.
DeveloperExtras超过 9 年前
Yes, but does it play Doom?