Skip to content

Commit

Permalink
go mod tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
phughk authored and Keitio committed Mar 9, 2023
1 parent d79cbe8 commit 90ce401
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)

Expand Down Expand Up @@ -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)
}

Expand Down
7 changes: 4 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit 90ce401

Please sign in to comment.