Skip to content

Commit 94ecaae

Browse files
phughkKeitio
authored andcommitted
go mod tidy
1 parent d79cbe8 commit 94ecaae

File tree

3 files changed

+6
-19
lines changed

3 files changed

+6
-19
lines changed

db.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
const statusOK = "OK"
1414

1515
var (
16-
ErrInvalidResponse = errors.New("invalid SurrealDB response") //nolint:stylecheck
16+
ErrInvalidResponse = errors.New("invalid SurrealDB response")
1717
ErrQuery = errors.New("error occurred processing the SurrealDB query")
1818
)
1919

@@ -146,7 +146,7 @@ func (db *DB) Close() error {
146146
// --------------------------------------------------
147147

148148
// Use is a method to select the namespace and table to use.
149-
func (db *DB) Use(ctx context.Context, ns string, dbname string) (interface{}, error) {
149+
func (db *DB) Use(ctx context.Context, ns, dbname string) (interface{}, error) {
150150
return db.send(ctx, "use", ns, dbname)
151151
}
152152

go.mod

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ module github.com/surrealdb/surrealdb.go
22

33
go 1.18
44

5-
require github.com/gorilla/websocket v1.5.0
5+
require (
6+
github.com/gorilla/websocket v1.5.0
7+
github.com/stretchr/testify v1.8.2
8+
)
69

710
require (
811
github.com/davecgh/go-spew v1.1.1 // indirect
912
github.com/pmezard/go-difflib v1.0.0 // indirect
10-
github.com/stretchr/objx v0.5.0 // indirect
11-
github.com/stretchr/testify v1.8.2 // indirect
1213
gopkg.in/yaml.v3 v3.0.1 // indirect
1314
)

id.go

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)