Fix sample code
This commit is contained in:
parent
50598c2090
commit
999627cfd4
@ -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 {
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user