diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2015-03-28 17:06:38 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2015-03-28 17:06:38 -0600 |
commit | 8b138fd106636b40b4b6d43786e668ce658aa3d7 (patch) | |
tree | 3db99e7d5a27bc8fd534c496f9c389df58191b97 | |
parent | Merge pull request #336 from boltdb/reclamation-docs (diff) | |
parent | Update README.md: fixed type mismatch (diff) | |
download | dedo-8b138fd106636b40b4b6d43786e668ce658aa3d7.tar.gz dedo-8b138fd106636b40b4b6d43786e668ce658aa3d7.tar.xz |
Merge pull request #340 from DSpeichert/master
Update README.md: fixed type mismatch
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -385,7 +385,7 @@ do database backups: ```go func BackupHandleFunc(w http.ResponseWriter, req *http.Request) { - err := db.View(func(tx bolt.Tx) error { + err := db.View(func(tx *bolt.Tx) error { w.Header().Set("Content-Type", "application/octet-stream") w.Header().Set("Content-Disposition", `attachment; filename="my.db"`) w.Header().Set("Content-Length", strconv.Itoa(int(tx.Size()))) |