Skip to content

A Go AWS utility package that will help you with standard functions

License

Notifications You must be signed in to change notification settings

emilhein/go-aws-utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Report Card Build Status

go-aws-utility

This project acts like a wrapper for the AWS go SDK. More functionality will be following...

How to use

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

	}

}

About

A Go AWS utility package that will help you with standard functions

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages