Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 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])

}

}

```