Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

go fmt

Signed-off-by: Dan Farina <drfarina@acm.org>
  • Loading branch information...
commit 4d8662f74ff86ca1808d92b9b86266ed49827d42 1 parent 29bcb7e
Dan Farina authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 url.go
6 url.go
@@ -3,8 +3,8 @@ package pq
3 3 import (
4 4 "fmt"
5 5 nurl "net/url"
6   - "strings"
7 6 "sort"
  7 + "strings"
8 8 )
9 9
10 10 // ParseURL converts url to a connection string for driver.Open.
@@ -36,7 +36,7 @@ func ParseURL(url string) (string, error) {
36 36 v := u.User.Username()
37 37 kvs = appendkv(kvs, "user", v)
38 38
39   - v, _ = u.User.Password()
  39 + v, _ = u.User.Password()
40 40 kvs = appendkv(kvs, "password", v)
41 41 }
42 42
@@ -56,7 +56,7 @@ func ParseURL(url string) (string, error) {
56 56 for k, _ := range q {
57 57 kvs = appendkv(kvs, k, q.Get(k))
58 58 }
59   -
  59 +
60 60 sort.Strings(kvs) // Makes testing easier (not a performance concern)
61 61 return strings.Join(kvs, " "), nil
62 62 }

0 comments on commit 4d8662f

Please sign in to comment.
Something went wrong with that request. Please try again.