Skip to content

tophatsteve/urlreader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

urlreader

The ulrreader package implements the io.Reader interface for HTTP resources.

go get -u github.com/tophatsteve/urlreader

Create a new instance of urlreader by calling the NewReader function passing in the url to be read. The returned urlreader can than be treated like any other io.Reader, for example:

r := NewReader("http://example.com/example.txt")
result, _ := ioutil.ReadAll(r)
fmt.Println(result)

About

Implement the io.Reader interface for URLs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages