From a66a7a6590a3e03f345c71df930c8b8518eb1f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Nieto?= <xiam@menteslibres.org> Date: Wed, 20 Mar 2013 18:45:27 -0400 Subject: [PATCH] Typos --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8f547fb0..5fde9d3f 100644 --- a/README.md +++ b/README.md @@ -186,13 +186,17 @@ animals.Append(db.Item{ animals.Append(db.Item{ "animal": "Canidae", - "young": sugar.List{"Puppy", "Pup"}, + "young": []string{"Puppy", "Pup"}, "female": "Bitch", "male": "Dog", "group": "Pack", }) -items := animals.FindAll() +items, err := animals.FindAll() + +if err != nil { + panic(err.Error()) +} for _, item := range items { fmt.Printf("animal: %s, young: %s\n", item["animal"], item["young"]) -- GitLab