From 84dcc7959774ced1a6e01f64ad2afb94d33e2764 Mon Sep 17 00:00:00 2001 From: Hugh Kaznowski Date: Wed, 8 Mar 2023 12:32:59 +0000 Subject: [PATCH] go mod tidy --- db.go | 4 ++-- go.mod | 7 ++++--- go.sum | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/db.go b/db.go index f607996..fb3d774 100644 --- a/db.go +++ b/db.go @@ -13,7 +13,7 @@ import ( const statusOK = "OK" var ( - ErrInvalidResponse = errors.New("invalid SurrealDB response") //nolint:stylecheck + ErrInvalidResponse = errors.New("invalid SurrealDB response") ErrQuery = errors.New("error occurred processing the SurrealDB query") ) @@ -109,7 +109,7 @@ func (db *DB) Close() error { // -------------------------------------------------- // Use is a method to select the namespace and table to use. -func (db *DB) Use(ctx context.Context, ns string, dbname string) (interface{}, error) { +func (db *DB) Use(ctx context.Context, ns, dbname string) (interface{}, error) { return db.send(ctx, "use", ns, dbname) } diff --git a/go.mod b/go.mod index 4c7e921..7b6ef39 100644 --- a/go.mod +++ b/go.mod @@ -2,12 +2,13 @@ module github.com/surrealdb/surrealdb.go go 1.18 -require github.com/gorilla/websocket v1.5.0 +require ( + github.com/gorilla/websocket v1.5.0 + github.com/stretchr/testify v1.8.2 +) require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/stretchr/objx v0.5.0 // indirect - github.com/stretchr/testify v1.8.2 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index b4ad9ac..b08125a 100644 --- a/go.sum +++ b/go.sum @@ -7,12 +7,12 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb 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/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=