Just another go library for s3 that makes it a little easier to work with.
- NewClient
- NewClientWithSession
- NewClientWithConfig
- BucketKeyExists
- DownloadFile
- UploadDirectory
- UploadFile
- GetPresignedURL
- GetObject
- GetString
- PutObject
- DeleteObject
- PutContent
- List
- KeyExists
go get github.com/jritsema/s3lib
s3, err := s3lib.NewClient("my-bucket", "us-east-1")
check(err)
//save an object
obj := &myType{version: "1.0"}
key := "mykey"
err = s3.PutObject(key, obj)
check(err)
//fetch
_, err = s3.GetObject(key, obj)
check(err)
//update
obj.version = "2.0"
err = s3.PutObject(key, obj)
check(err)
//delete
err = s3.DeleteObject(key)
check(err)