Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

README.md

go-drainclose

Make your app 4x faster.

See https://github.com/google/go-github/pull/317

Usage

Before

resp, err := http.Get(blah)
if err != nil {
	return err
}
defer resp.Body.Close()
json.NewDecoder(resp.Body).Decode(&data)

After

resp, err := http.Get(blah)
if err != nil {
	return err
}
defer drainclose.Close(resp.Body)
json.NewDecoder(resp.Body).Decode(&data)

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)

About

No description, website, or topics provided.

Resources

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages