From e722ca608c88d1b2946a90c9806a9f2cea24bb0e Mon Sep 17 00:00:00 2001 From: alex <alexrus.kanaev@gmail.com> Date: Tue, 13 Apr 2021 22:23:34 +0300 Subject: [PATCH] added url connection example --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 00b11f97..73232044 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ import ( ) func main() { + // urlExample := "postgres://username:password@localhost:5432/database_name" conn, err := pgx.Connect(context.Background(), os.Getenv("DATABASE_URL")) if err != nil { fmt.Fprintf(os.Stderr, "Unable to connect to database: %v\n", err)