Fixes Errata

p.288, code display following ¶4: In the import declaration, for "database/mysql", read "database/sql". (Thanks to Jose Colon Rodriguez, 2016-01-09.)
This commit is contained in:
chai2010 2016-01-11 10:17:54 +08:00
parent e74f2527fc
commit 77e5b4c36c

View File

@ -79,7 +79,7 @@ func init() {
```Go
import (
"database/mysql"
"database/sql"
_ "github.com/lib/pq" // enable support for Postgres
_ "github.com/go-sql-driver/mysql" // enable support for MySQL
)