diff --git a/README.md b/README.md index c9df01e..8488deb 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ r, err := c.Retr("test-file.txt") if err != nil { panic(err) } +defer r.Close() buf, err := ioutil.ReadAll(r) println(string(buf))