From 16176b5151770608f202298776016b427a1ddcfa Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 30 Mar 2019 12:26:24 -0500 Subject: [PATCH] Add go module support --- authentication.go | 2 +- backend.go | 2 +- backend_key_data.go | 2 +- backend_test.go | 2 +- bind.go | 2 +- close.go | 2 +- command_complete.go | 2 +- copy_both_response.go | 2 +- copy_data.go | 2 +- copy_fail.go | 2 +- copy_in_response.go | 2 +- copy_out_response.go | 2 +- data_row.go | 2 +- describe.go | 2 +- execute.go | 2 +- frontend.go | 2 +- frontend_test.go | 2 +- function_call_response.go | 2 +- go.mod | 9 +++++++++ go.sum | 6 ++++++ notification_response.go | 2 +- parameter_description.go | 2 +- parameter_status.go | 2 +- parse.go | 2 +- password_message.go | 2 +- query.go | 2 +- row_description.go | 2 +- startup_message.go | 2 +- 28 files changed, 41 insertions(+), 26 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/authentication.go b/authentication.go index 77750b86..14275a86 100644 --- a/authentication.go +++ b/authentication.go @@ -3,7 +3,7 @@ package pgproto3 import ( "encoding/binary" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" "github.com/pkg/errors" ) diff --git a/backend.go b/backend.go index ea44d1d1..b64f006c 100644 --- a/backend.go +++ b/backend.go @@ -4,7 +4,7 @@ import ( "encoding/binary" "io" - "github.com/jackc/pgx/chunkreader" + "github.com/jackc/chunkreader" "github.com/pkg/errors" ) diff --git a/backend_key_data.go b/backend_key_data.go index 5a478f10..0396379b 100644 --- a/backend_key_data.go +++ b/backend_key_data.go @@ -4,7 +4,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type BackendKeyData struct { diff --git a/backend_test.go b/backend_test.go index 02a5e9ca..a26f2c40 100644 --- a/backend_test.go +++ b/backend_test.go @@ -3,7 +3,7 @@ package pgproto3_test import ( "testing" - "github.com/jackc/pgx/pgproto3" + "github.com/jackc/pgproto3" ) func TestBackendReceiveInterrupted(t *testing.T) { diff --git a/bind.go b/bind.go index cceee6ab..459e5ff2 100644 --- a/bind.go +++ b/bind.go @@ -6,7 +6,7 @@ import ( "encoding/hex" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type Bind struct { diff --git a/close.go b/close.go index 5ff4c886..4e497549 100644 --- a/close.go +++ b/close.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type Close struct { diff --git a/command_complete.go b/command_complete.go index 85848532..0012f6f0 100644 --- a/command_complete.go +++ b/command_complete.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type CommandComplete struct { diff --git a/copy_both_response.go b/copy_both_response.go index 2862a34f..aa59d52a 100644 --- a/copy_both_response.go +++ b/copy_both_response.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type CopyBothResponse struct { diff --git a/copy_data.go b/copy_data.go index fab139e6..490d3d80 100644 --- a/copy_data.go +++ b/copy_data.go @@ -4,7 +4,7 @@ import ( "encoding/hex" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type CopyData struct { diff --git a/copy_fail.go b/copy_fail.go index 432a311b..e086207a 100644 --- a/copy_fail.go +++ b/copy_fail.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type CopyFail struct { diff --git a/copy_in_response.go b/copy_in_response.go index 54083cd6..3ddeeb40 100644 --- a/copy_in_response.go +++ b/copy_in_response.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type CopyInResponse struct { diff --git a/copy_out_response.go b/copy_out_response.go index eaa33b8b..01a64228 100644 --- a/copy_out_response.go +++ b/copy_out_response.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type CopyOutResponse struct { diff --git a/data_row.go b/data_row.go index e46d3cc0..0da18b06 100644 --- a/data_row.go +++ b/data_row.go @@ -5,7 +5,7 @@ import ( "encoding/hex" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type DataRow struct { diff --git a/describe.go b/describe.go index bb7bc056..86016ebc 100644 --- a/describe.go +++ b/describe.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type Describe struct { diff --git a/execute.go b/execute.go index 76da9943..71713f49 100644 --- a/execute.go +++ b/execute.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type Execute struct { diff --git a/frontend.go b/frontend.go index 31a955bc..00cb68b4 100644 --- a/frontend.go +++ b/frontend.go @@ -4,7 +4,7 @@ import ( "encoding/binary" "io" - "github.com/jackc/pgx/chunkreader" + "github.com/jackc/chunkreader" "github.com/pkg/errors" ) diff --git a/frontend_test.go b/frontend_test.go index 7d6652c1..49484e01 100644 --- a/frontend_test.go +++ b/frontend_test.go @@ -5,7 +5,7 @@ import ( "github.com/pkg/errors" - "github.com/jackc/pgx/pgproto3" + "github.com/jackc/pgproto3" ) type interruptReader struct { diff --git a/function_call_response.go b/function_call_response.go index bb325b69..f14f8452 100644 --- a/function_call_response.go +++ b/function_call_response.go @@ -5,7 +5,7 @@ import ( "encoding/hex" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type FunctionCallResponse struct { diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..2c2b401e --- /dev/null +++ b/go.mod @@ -0,0 +1,9 @@ +module github.com/jackc/pgproto3 + +go 1.12 + +require ( + github.com/jackc/chunkreader v1.0.0 + github.com/jackc/pgio v1.0.0 + github.com/pkg/errors v0.8.1 +) diff --git a/go.sum b/go.sum new file mode 100644 index 00000000..887dd869 --- /dev/null +++ b/go.sum @@ -0,0 +1,6 @@ +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/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/notification_response.go b/notification_response.go index b14007b4..2b32b10c 100644 --- a/notification_response.go +++ b/notification_response.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type NotificationResponse struct { diff --git a/parameter_description.go b/parameter_description.go index 1fa3c927..9d964129 100644 --- a/parameter_description.go +++ b/parameter_description.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type ParameterDescription struct { diff --git a/parameter_status.go b/parameter_status.go index b3bac33f..d370a4c1 100644 --- a/parameter_status.go +++ b/parameter_status.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type ParameterStatus struct { diff --git a/parse.go b/parse.go index ca4834c6..6f17175b 100644 --- a/parse.go +++ b/parse.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type Parse struct { diff --git a/password_message.go b/password_message.go index 2ad3fe4a..30377cbe 100644 --- a/password_message.go +++ b/password_message.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type PasswordMessage struct { diff --git a/query.go b/query.go index d80c0fb4..16228cb4 100644 --- a/query.go +++ b/query.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) type Query struct { diff --git a/row_description.go b/row_description.go index 7deba379..7f46ede3 100644 --- a/row_description.go +++ b/row_description.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" ) const ( diff --git a/startup_message.go b/startup_message.go index 6c5d4f99..93a3d992 100644 --- a/startup_message.go +++ b/startup_message.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/jackc/pgx/pgio" + "github.com/jackc/pgio" "github.com/pkg/errors" )