https://github.com/emilhein/go-aws-utility
A Go AWS utility package that will help you with standard functions
https://github.com/emilhein/go-aws-utility
aws go golang utility
Last synced: 2 months ago
JSON representation
A Go AWS utility package that will help you with standard functions
- Host: GitHub
- URL: https://github.com/emilhein/go-aws-utility
- Owner: emilhein
- License: apache-2.0
- Created: 2019-10-17T11:47:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-27T07:17:39.000Z (over 6 years ago)
- Last Synced: 2025-05-18T06:05:57.759Z (about 1 year ago)
- Topics: aws, go, golang, utility
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://goreportcard.com/report/github.com/emilhein/go-aws-utility)
[](https://travis-ci.org/emilhein/go-aws-utility)
# go-aws-utility
This project acts like a wrapper for the AWS go SDK.
More functionality will be following...
## How to use
```go
package main
import (
"fmt"
"github.com/go-aws-utility/util/services"
)
func main() {
// Get credentials
credentials := services.GetAccountInfo()
fmt.Printf("We found your acocunt Key: %v \n", credentials)
// //list buckets
buckets, err := services.GetS3Buckets()
if err != nil {
fmt.Println("Error: ", err)
}
buckets.ListBuckets()
// read files in parrallel
input := services.FilesInput{Bucket: "YOUR_BUCKET", FileNames: []string{"PATH_TO_FILE"}}
returnValues := services.GetS3Files(input)
fmt.Println("All files read!")
for i := 0; i < len(returnValues.Files); i++ {
fmt.Println("", returnValues.Files[i])
}
}
```