Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here's that stab I took at writing a go version.
You can run the test file with something like
./test.sh 'go run cmd/scrapyard/main.go'. Might need togo getfirst, I don't really know.This is basically the first real go program I've written, so I'm sure there's a ton of stuff that could be improved. Mostly just followed
gofmt,golint, and whatever else was around. In particular, I've no clue about libraries or structure or anything like that. So, I'm down to change whatever.I tried to stay true to the spirit of the Ruby implementation, but there are some differences (explained in the first commit). As mentioned before, it's only the fileyard version. But we can add the S3 version as well if this seems like a good way to go.
Lemme know if you want this, don't want it, want changes, or whatever else. Happy to follow up with whatever, but also would be totally fine with ditching it if you'd prefer something else.