2
0

Use Go modules

This commit is contained in:
Jack Christensen
2019-03-30 12:55:56 -05:00
parent 79ffab9836
commit fbdfccf1f9
10 changed files with 41 additions and 10 deletions
+1
View File
@@ -0,0 +1 @@
.envrc
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"os"
"testing"
"github.com/jackc/pgx/pgconn"
"github.com/jackc/pgconn"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"strings"
"time"
"github.com/jackc/pgx/pgpassfile"
"github.com/jackc/pgpassfile"
"github.com/pkg/errors"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"os/user"
"testing"
"github.com/jackc/pgx/pgconn"
"github.com/jackc/pgconn"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+11
View File
@@ -0,0 +1,11 @@
module github.com/jackc/pgconn
go 1.12
require (
github.com/jackc/pgio v1.0.0
github.com/jackc/pgpassfile v1.0.0
github.com/jackc/pgproto3 v1.0.0
github.com/pkg/errors v0.8.1
github.com/stretchr/testify v1.3.0
)
+19
View File
@@ -0,0 +1,19 @@
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jackc/chunkreader v1.0.0 h1:4s39bBR8ByfqH+DKm8rQA3E1LHZWB9XWcrz8fqaZbe0=
github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo=
github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE=
github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
github.com/jackc/pgproto3 v0.0.0-20190330174656-bb06e6b3ff87 h1:xueDi0R+HxuFmuOA1xyFbbF+2LSXqWQJZSPWmmMFB0A=
github.com/jackc/pgproto3 v0.0.0-20190330174656-bb06e6b3ff87/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78=
github.com/jackc/pgproto3 v1.0.0 h1:25tUmlES7eyD96oYaUHc1dLOFbgcJtFzCdnOOoqmA1I=
github.com/jackc/pgproto3 v1.0.0/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/jackc/pgx/pgconn"
"github.com/jackc/pgconn"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+3 -3
View File
@@ -15,8 +15,8 @@ import (
"sync"
"time"
"github.com/jackc/pgx/pgio"
"github.com/jackc/pgx/pgproto3"
"github.com/jackc/pgio"
"github.com/jackc/pgproto3"
)
var deadlineTime = time.Date(1, 1, 1, 1, 1, 1, 1, time.UTC)
@@ -171,7 +171,7 @@ func connect(ctx context.Context, config *Config, fallbackConfig *FallbackConfig
}
}
pgConn.Frontend, err = pgproto3.NewFrontend(pgConn.conn, pgConn.conn)
pgConn.Frontend, err = pgproto3.NewFrontend(pgproto3.NewChunkReader(pgConn.conn), pgConn.conn)
if err != nil {
return nil, err
}
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/jackc/pgx/pgconn"
"github.com/jackc/pgconn"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -15,8 +15,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/pgconn"
"github.com/jackc/pgx/pgproto3"
"github.com/jackc/pgconn"
"github.com/jackc/pgproto3"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"