Skip to content

Commit

Permalink
fix indent and sample output
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed May 1, 2024
1 parent 99bbecf commit 1031334
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions _content/doc/tutorial/database-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ specific database.
var db *sql.DB
func main() {
// Capture connection properties.
cfg := mysql.NewConfig()
cfg.User = os.Getenv("DBUSER")
cfg.Passwd = os.Getenv("DBPASS")
cfg.Net = "tcp"
cfg.Addr = "127.0.0.1:3306"
cfg.DBName = "recordings"
// Capture connection properties.
cfg := mysql.NewConfig()
cfg.User = os.Getenv("DBUSER")
cfg.Passwd = os.Getenv("DBPASS")
cfg.Net = "tcp"
cfg.Addr = "127.0.0.1:3306"
cfg.DBName = "recordings"
// Get a database handle.
var err error
Expand Down Expand Up @@ -331,7 +331,8 @@ specific database.

```
$ go get .
go get: added github.com/go-sql-driver/mysql v1.6.0
go: added filippo.io/edwards25519 v1.1.0
go: added github.com/go-sql-driver/mysql v1.8.1
```

Go downloaded this dependency because you added it to the `import`
Expand Down

0 comments on commit 1031334

Please sign in to comment.