在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mitchellh/goamz开源软件地址:https://github.com/mitchellh/goamz开源编程语言:Go 99.9%开源软件介绍:goamz - An Amazon Library for GoThis is a fork of https://launchpad.net/goamz that adds some missing API calls to certain packages. This library is incomplete, but implements a large amount of the AWS API. It is heavily used in projects such as Terraform and Packer. If you find anything missing from this library, please file an issue. Example Usagepackage main
import (
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/s3"
"log"
"fmt"
)
func main() {
auth, err := aws.EnvAuth()
if err != nil {
log.Fatal(err)
}
client := s3.New(auth, aws.USEast)
resp, err := client.ListBuckets()
if err != nil {
log.Fatal(err)
}
log.Print(fmt.Sprintf("%T %+v", resp.Buckets[0], resp.Buckets[0]))
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论