Fix typo in docs

* Use '.' to bring exported identifiers into main namespace (not '_')
This commit is contained in:
Trevor Rosen 2013-12-27 18:50:26 -06:00
parent 09334a8bb7
commit f3b09997d2
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ func init() {
// user.go
package user
import "db"
import . "db"
...
DB.Save(&User{Name: "xxx"})
...