remote
is a package for opening remote files easily.
f, _ := remote.Open("http://example.com/file.txt")
defer f.Close()
f, _, := remote.Open("github://k1LoW/tbls/README.md")
defer f.Close()
f, _, := remote.Open("s3://my-bucket/path/to/file.txt")
defer f.Close()
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()