remote
remote
is a package for opening remote files easily.
Support remote source
HTTP
f, _ := remote.Open("http://example.com/file.txt")
defer f.Close()
GitHub
f, _, := remote.Open("github://k1LoW/tbls/README.md")
defer f.Close()
Amazon S3
f, _, := remote.Open("s3://my-bucket/path/to/file.txt")
defer f.Close()
Google Cloud Storage
f, _, := remote.Open("gs://my-bucket/path/to/file.txt")
defer f.Close()
f, _, := remote.Open("gcs://my-bucket/path/to/file.txt")
defer f.Close()