Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-27T07:17:39.000Z (over 5 years ago)
- Last Synced: 2024-11-07T08:37:55.429Z (3 months 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
[![Go Report Card](https://goreportcard.com/badge/github.com/emilhein/go-aws-utility)](https://goreportcard.com/report/github.com/emilhein/go-aws-utility)
[![Build Status](https://travis-ci.org/emilhein/go-aws-utility.svg?branch=master)](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 mainimport (
"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])}
}
```