This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package queue | |
import "sync" | |
type Queue struct { | |
q []int | |
size int | |
lock *sync.Mutex | |
addlisten chan int | |
} |