From 90ce401213da7d8d1fcce0b8409341f04689ad29 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 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/db.go b/db.go index 9c28e5e..dbf46c7 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") ) @@ -146,7 +146,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 )