Help us understand the problem. What is going on with this article?

AWS SDK go を試そうとしたら http.Client field 'Timeout' in struct literal

More than 3 years have passed since last update.

AWS SDK go を試してみようと、 にあるサンプル的なコードを

$ go build aws.go
src/ unknown http.Client field 'Timeout' in struct literal


$ go version
go version go1.2.1 darwin/amd64

この 1.2.1のやつをどうやってインストールしたのか忘れたので、消して再インストール

$ brew install go

$ go version
go version go1.3.3 darwin/amd64
$ go buld aws.go


最新は、1.4系らしいので、念のため upgradeしとく。

$ brew update
$ brew upgrade go
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away