From afd9efcc9f3af2b03bfddfc14766538be46bb5f1 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Wed, 21 Aug 2024 22:29:32 +0200 Subject: [PATCH] link to func 'sql.OpenDB': fix incorrect line number --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ffca7b16..f459a07c 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ if err != nil { defer db.Close() ``` -Alternatively, you can use [sql.OpenDB](https://cs.opensource.google/go/go/+/refs/tags/go1.23.0:src/database/sql/sql.go;l=855). That way, you can perform initialization steps in a callback function before opening the database. +Alternatively, you can use [sql.OpenDB](https://cs.opensource.google/go/go/+/refs/tags/go1.23.0:src/database/sql/sql.go;l=824). That way, you can perform initialization steps in a callback function before opening the database. Here's an example that installs and loads the JSON extension when opening a database with `sql.OpenDB(connector)`. ```go