https://github.com/mashiike/urlio
powerful url stream
https://github.com/mashiike/urlio
golang stream url
Last synced: 3 months ago
JSON representation
powerful url stream
- Host: GitHub
- URL: https://github.com/mashiike/urlio
- Owner: mashiike
- License: mit
- Created: 2020-03-27T05:53:46.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-27T23:54:19.000Z (about 5 years ago)
- Last Synced: 2024-06-20T01:54:05.982Z (12 months ago)
- Topics: golang, stream, url
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# urlio

[](http://godoc.org/github.com/mashiike/urlio)
[](https://goreportcard.com/report/github.com/mashiike/urlio)package urlio aims to provide io.Reader/io.Writer for resources corresponding to URLs.
builtin support schemes
* s3
* gs
* file
* http
* https**Note**: As of v0.0.0, it is still a Reader only implementation.
## Usage
see details in [godoc](http://godoc.org/github.com/mashiike/urlio)
```go
package mainimport (
"fmt"
"io/ioutil""github.com/mashiike/urlio"
)func main() {
reader, _ := urlio.NewReader("s3://example.com/example.txt")
defer reader.Close()
bytes, _ := ioutil.ReadAll(reader)
fmt.Println(string(bytes))
}
```## LICENSE
MIT