From f3b09997d28b210eecb260546a3a6fdef673bf14 Mon Sep 17 00:00:00 2001 From: Trevor Rosen Date: Fri, 27 Dec 2013 18:50:26 -0600 Subject: [PATCH] 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"}) ...