mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2024-11-04 21:43:42 +00:00
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:
parent
e74f2527fc
commit
77e5b4c36c
@ -79,7 +79,7 @@ func init() {
|
|||||||
|
|
||||||
```Go
|
```Go
|
||||||
import (
|
import (
|
||||||
"database/mysql"
|
"database/sql"
|
||||||
_ "github.com/lib/pq" // enable support for Postgres
|
_ "github.com/lib/pq" // enable support for Postgres
|
||||||
_ "github.com/go-sql-driver/mysql" // enable support for MySQL
|
_ "github.com/go-sql-driver/mysql" // enable support for MySQL
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user