From ff5061c90fab94d2d9a669f301b9e8b9b95d0ee6 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 21 May 2024 04:10:38 +0900 Subject: [PATCH] apply go modules and update dependencies --- go.mod | 10 ++++++++++ go.sum | 15 +++++++++++++++ hpfeeds.go | 4 ++-- main.go | 2 +- pgconn.go | 2 +- pgpacket.go | 2 +- server.go | 2 +- serverutils.go | 2 +- 8 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..9f95877 --- /dev/null +++ b/go.mod @@ -0,0 +1,10 @@ +module github.com/betheroot/pghoney + +go 1.20 + +require ( + github.com/hpfeeds/go-hpfeeds v0.0.0-20130602172243-651ce0355974 // indirect + github.com/lib/pq v1.10.9 // indirect + github.com/sirupsen/logrus v1.9.3 // indirect + golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..664b755 --- /dev/null +++ b/go.sum @@ -0,0 +1,15 @@ +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/hpfeeds/go-hpfeeds v0.0.0-20130602172243-651ce0355974 h1:xAh1GbJn47T9or3aFNJ8VoDZzuGiIouRkS9XfuVQBoM= +github.com/hpfeeds/go-hpfeeds v0.0.0-20130602172243-651ce0355974/go.mod h1:RPqFgNXAM6MAA7PBzqY29RTnEwZ3eek9Lyme0h8+nuE= +github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= +github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/hpfeeds.go b/hpfeeds.go index d450435..10cee20 100644 --- a/hpfeeds.go +++ b/hpfeeds.go @@ -3,8 +3,8 @@ package main import ( "time" - log "github.com/Sirupsen/logrus" - hpfeeds "github.com/fw42/go-hpfeeds" + log "github.com/sirupsen/logrus" + hpfeeds "github.com/hpfeeds/go-hpfeeds" ) type HpFeedsEvent struct { diff --git a/main.go b/main.go index 3b8717a..465f7c2 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ import ( "syscall" "time" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" ) type Configuration struct { diff --git a/pgconn.go b/pgconn.go index 253a78a..3a25d02 100644 --- a/pgconn.go +++ b/pgconn.go @@ -5,7 +5,7 @@ import ( "strings" "time" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" ) var ( diff --git a/pgpacket.go b/pgpacket.go index 2648fb4..aff060d 100644 --- a/pgpacket.go +++ b/pgpacket.go @@ -6,7 +6,7 @@ import ( "bytes" "encoding/binary" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/lib/pq/oid" ) diff --git a/server.go b/server.go index 0718653..6f659ac 100644 --- a/server.go +++ b/server.go @@ -9,7 +9,7 @@ import ( "sync" "time" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" ) type PostgresServer struct { diff --git a/serverutils.go b/serverutils.go index 24e3ba9..d0aa412 100644 --- a/serverutils.go +++ b/serverutils.go @@ -5,7 +5,7 @@ import ( "io" "net" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" ) // Initial requests: