Merge pull request #5 from toashd/fix-sample
Fix sample code --- Looks good, thanks for catching that.
This commit is contained in:
commit
b14eeebb76
|
@ -27,7 +27,7 @@ if err := db.Write("fish", "onefish", fish); err != nil {
|
||||||
|
|
||||||
// Read all fish from the database
|
// Read all fish from the database
|
||||||
fish := []Fish{}
|
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
|
// Delete all fish from the database
|
||||||
if err := db.Delete("fish"); err != nil {
|
if err := db.Delete("fish", ""); err != nil {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue