ParseURL no longer needs to be used by clients of this library since supplying a URL as a connection string to sql.Open() is now supported: sql.Open("postgres", "postgres://bob:secret@1.2.3.4:5432/mydb?sslmode=verify-full") It remains exported here for backwards-compatibility. ParseURL converts a url to a connection string for driver.Open. Example: "postgres://bob:secret@1.2.3.4:5432/mydb?sslmode=verify-full" converts to: "user=bob password=secret host=1.2.3.4 port=5432 dbname=mydb sslmode=verify-full" A minimal example: "postgres://" This will be blank, causing driver.Open to use all of the defaults
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.