Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export a function for parsing conninfo strings #375

Closed
wants to merge 1 commit into from
Closed

Export a function for parsing conninfo strings #375

wants to merge 1 commit into from

Conversation

johto
Copy link
Contributor

@johto johto commented Jul 3, 2015

I was about to copy-paste our code for an app I'm working on, but I thought I'd do one better and make this available for everyone. Example usage:

opts := make(pq.ConninfoOptions)
err = pq.ParseConninfo("host=foo bar=baz", opts)
if err != nil {
    panic(err)
}
fmt.Printf("%+#v\n", opts)

Thoughts?

@jenanwise
Copy link

I'd love this. I'm currently duplicating parsing logic in my custom driver wrapper around pq.

@johto johto mentioned this pull request Jun 21, 2016
@ajvb
Copy link

ajvb commented Jul 19, 2016

+1

@johto johto closed this Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants