Skip to content

Instantly share code, notes, and snippets.

View K4N0's full-sized avatar

K4N0 K4N0

  • Kayforno
View GitHub Profile
@ehernandez-xk
ehernandez-xk / upload-file-s3.go
Last active January 31, 2021 00:56
Uploading a file to AWS S3 using aws-sdk-go
/*
https://www.youtube.com/watch?v=iOGIKG3EptI
https://github.com/awslabs/aws-go-wordfreq-sample/blob/master/cmd/uploads3/main.go
https://docs.aws.amazon.com/sdk-for-go/api/aws/
- first configure your aws credentials run: aws configure
- go get -u github.com/aws/aws-sdk-go/aws
- login to UI web aws s3 interface
- go to S3 service
@b1naryth1ef
b1naryth1ef / queue.go
Created September 12, 2013 18:06
This is a simple little Queue with blocking pop abilities built in golang
package queue
import "sync"
type Queue struct {
q []int
size int
lock *sync.Mutex
addlisten chan int
}