Fix sample code

This commit is contained in:
Tobias Schmid 2015-11-04 22:45:28 +01:00
parent 50598c2090
commit 999627cfd4

View File

@ -27,7 +27,7 @@ if err := db.Write("fish", "onefish", fish); err != nil {
// Read all fish from the database
fish := []Fish{}
if err := db.Read("fish", fish); err != nil {
if err := db.Read("fish", "", fish); err != nil {
}
@ -38,7 +38,7 @@ if err := db.Read("fish", "onefish", fish); err != nil {
}
// Delete all fish from the database
if err := db.Delete("fish"); err != nil {
if err := db.Delete("fish", ""); err != nil {
}