mirror of https://github.com/jackc/pgx.git
go fmt
parent
86099237bd
commit
d1a586ed64
1
conn.go
1
conn.go
|
@ -240,7 +240,6 @@ func (c *conn) rxDataRow(buf []byte) (row map[string]string, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (c *conn) rxCommandComplete(buf []byte) string {
|
func (c *conn) rxCommandComplete(buf []byte) string {
|
||||||
r := newMessageReader(buf)
|
r := newMessageReader(buf)
|
||||||
return r.readString()
|
return r.readString()
|
||||||
|
|
|
@ -28,7 +28,6 @@ func TestConnect(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func TestQuery(t *testing.T) {
|
func TestQuery(t *testing.T) {
|
||||||
conn, err := Connect(map[string]string{"socket": "/private/tmp/.s.PGSQL.5432"})
|
conn, err := Connect(map[string]string{"socket": "/private/tmp/.s.PGSQL.5432"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package pqx
|
package pqx
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"encoding/binary"
|
||||||
)
|
)
|
||||||
|
|
||||||
type messageReader []byte
|
type messageReader []byte
|
||||||
|
|
Loading…
Reference in New Issue