mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2025-08-06 23:41:43 +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:
@@ -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
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user