Skip to content

Commit aae55f7

Browse files
authored
README: Make usage code more friendly (#1170)
1 parent cf72fd2 commit aae55f7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,14 @@ _Go MySQL Driver_ is an implementation of Go's `database/sql/driver` interface.
5858
Use `mysql` as `driverName` and a valid [DSN](#dsn-data-source-name) as `dataSourceName`:
5959

6060
```go
61-
import "database/sql"
62-
import _ "github.com/go-sql-driver/mysql"
61+
import (
62+
"database/sql"
63+
"time"
64+
65+
_ "github.com/go-sql-driver/mysql"
66+
)
67+
68+
// ...
6369

6470
db, err := sql.Open("mysql", "user:password@/dbname")
6571
if err != nil {

0 commit comments

Comments
 (0)