From 09334a8bb75d18f3d298ef4542fc2afb21b45bd2 Mon Sep 17 00:00:00 2001 From: Trevor Rosen Date: Fri, 27 Dec 2013 16:09:43 -0600 Subject: [PATCH 1/2] Remove typo from DB access example in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f2b894cc..5c6f8bbb 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ func init() { // user.go package user -import _ "db" +import "db" ... DB.Save(&User{Name: "xxx"}) ... From f3b09997d28b210eecb260546a3a6fdef673bf14 Mon Sep 17 00:00:00 2001 From: Trevor Rosen Date: Fri, 27 Dec 2013 18:50:26 -0600 Subject: [PATCH 2/2] Fix typo in docs * Use '.' to bring exported identifiers into main namespace (not '_') --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c6f8bbb..0f947647 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ func init() { // user.go package user -import "db" +import . "db" ... DB.Save(&User{Name: "xxx"}) ...