update dependencies

This commit is contained in:
Roy Olav Purser 2022-04-03 16:27:14 +02:00
parent 8902f35028
commit 43f4a42499
Signed by: roypur
GPG Key ID: E14D26A036F21656
3 changed files with 7 additions and 7 deletions

4
go.mod
View File

@ -1,5 +1,5 @@
module git.purser.it/roypur/stoken module git.purser.it/roypur/stoken
go 1.17 go 1.18
require github.com/ugorji/go/codec v1.2.6 require github.com/ugorji/go/codec v1.2.7 // indirect

8
go.sum
View File

@ -1,4 +1,4 @@
github.com/ugorji/go v1.2.6 h1:tGiWC9HENWE2tqYycIqFTNorMmFRVhNwCpDOpWqnk8E= github.com/ugorji/go v1.2.7 h1:qYhyWUUd6WbiM+C6JZAUkIJt/1WrjzNHY9+KCIjVqTo=
github.com/ugorji/go v1.2.6/go.mod h1:anCg0y61KIhDlPZmnH+so+RQbysYVyDko0IMgJv0Nn0= github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M=
github.com/ugorji/go/codec v1.2.6 h1:7kbGefxLoDBuYXOms4yD7223OpNMMPNPZxXk5TvFcyQ= github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0=
github.com/ugorji/go/codec v1.2.6/go.mod h1:V6TCNZ4PHqoHGFZuSG1W8nrCzzdgA2DozYxWFFpvxTw= github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY=

View File

@ -52,7 +52,7 @@ func (tc TokenCoder) SeedHex() string {
} }
func Format(token string) (txt string, err error) { func Format(token string) (txt string, err error) {
var payload any var payload interface{}
var data []byte var data []byte
data, err = b64.DecodeString(strings.TrimFunc(token, trim)) data, err = b64.DecodeString(strings.TrimFunc(token, trim))
if err != nil { if err != nil {