diff --git a/frisbee.go b/frisbee.go index b844ce7..4270b88 100644 --- a/frisbee.go +++ b/frisbee.go @@ -23,7 +23,7 @@ import ( "github.com/loopholelabs/frisbee-go/pkg/metadata" "github.com/loopholelabs/frisbee-go/pkg/packet" - "github.com/loopholelabs/polyglot" + "github.com/loopholelabs/polyglot/v2" ) // These are various frisbee errors that can be returned by the client or server: diff --git a/go.mod b/go.mod index 3411a89..2e34e2a 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,11 @@ module github.com/loopholelabs/frisbee-go -go 1.20 +go 1.21.4 require ( github.com/loopholelabs/common v0.4.9 - github.com/loopholelabs/polyglot v1.2.2 + github.com/loopholelabs/polyglot v1.3.0 + github.com/loopholelabs/polyglot/v2 v2.0.0 github.com/loopholelabs/testing v0.2.3 github.com/rs/zerolog v1.32.0 github.com/stretchr/testify v1.9.0 diff --git a/go.sum b/go.sum index 22d6de0..9191e86 100644 --- a/go.sum +++ b/go.sum @@ -4,12 +4,15 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/loopholelabs/common v0.4.9 h1:9MPUYlZZ/qx3Kt8LXgXxcSXthrM91od8026c4DlGpAU= github.com/loopholelabs/common v0.4.9/go.mod h1:Wop5srN1wYT+mdQ9gZ+kn2I9qKAyVd0FB48pThwIa9M= -github.com/loopholelabs/polyglot v1.2.2 h1:HQQh7CfWw5genuaNUX2RPiyDRz9YOR3tF6SbIl7YuBY= -github.com/loopholelabs/polyglot v1.2.2/go.mod h1:w9F5kdv3EzE2r7scpmj29hoySRr7NNLjpeUL4ALMusA= +github.com/loopholelabs/polyglot v1.3.0 h1:pOQjZHo4X/VEjADkmM2tXHui8NFkOlmaU4D/4W18WK8= +github.com/loopholelabs/polyglot v1.3.0/go.mod h1:w9F5kdv3EzE2r7scpmj29hoySRr7NNLjpeUL4ALMusA= +github.com/loopholelabs/polyglot/v2 v2.0.0 h1:apwXs/A0g/6GEoj/n3+6orKYl17Qj4dSK8azmFuY110= +github.com/loopholelabs/polyglot/v2 v2.0.0/go.mod h1:V9WoilbgAJ3q5MQO4XwGhrmSpufW7XJK7KKESnWI3Mg= github.com/loopholelabs/testing v0.2.3 h1:4nVuK5ctaE6ua5Z0dYk2l7xTFmcpCYLUeGjRBp8keOA= github.com/loopholelabs/testing v0.2.3/go.mod h1:gqtGY91soYD1fQoKQt/6kP14OYpS7gcbcIgq5mc9m8Q= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= @@ -37,5 +40,6 @@ golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/pkg/packet/packet.go b/pkg/packet/packet.go index 5acbf1a..24e63ae 100644 --- a/pkg/packet/packet.go +++ b/pkg/packet/packet.go @@ -18,7 +18,7 @@ package packet import ( "github.com/loopholelabs/frisbee-go/pkg/metadata" - "github.com/loopholelabs/polyglot" + "github.com/loopholelabs/polyglot/v2" ) // Packet is the structured frisbee data packet, and contains the following: