Skip to content

Commit 256a6d4

Browse files
nikooo777kauffj
authored andcommitted
update lbry.go library
1 parent 3f035a9 commit 256a6d4

File tree

6 files changed

+34
-34
lines changed

6 files changed

+34
-34
lines changed

boilingcore/imports.go

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ func newImporter() importer {
170170
`"time"`,
171171
},
172172
thirdParty: importList{
173-
`"github.com/lbryio/lbry.go/extras/errors"`,
174-
`"github.com/lbryio/lbry.go/extras/null"`,
173+
`"github.com/lbryio/lbry.go/v2/extras/errors"`,
174+
`"github.com/lbryio/lbry.go/v2/extras/null"`,
175175
`"github.com/lbryio/sqlboiler/boil"`,
176176
`"github.com/lbryio/sqlboiler/queries"`,
177177
`"github.com/lbryio/sqlboiler/queries/qm"`,
@@ -186,7 +186,7 @@ func newImporter() importer {
186186
`"strings"`,
187187
},
188188
thirdParty: importList{
189-
`"github.com/lbryio/lbry.go/extras/errors"`,
189+
`"github.com/lbryio/lbry.go/v2/extras/errors"`,
190190
`"github.com/lbryio/sqlboiler/boil"`,
191191
`"github.com/lbryio/sqlboiler/queries"`,
192192
`"github.com/lbryio/sqlboiler/queries/qm"`,
@@ -195,7 +195,7 @@ func newImporter() importer {
195195
},
196196
"boil_types": {
197197
thirdParty: importList{
198-
`"github.com/lbryio/lbry.go/extras/errors"`,
198+
`"github.com/lbryio/lbry.go/v2/extras/errors"`,
199199
`"github.com/lbryio/sqlboiler/strmangle"`,
200200
},
201201
},
@@ -228,7 +228,7 @@ func newImporter() importer {
228228
},
229229
thirdParty: importList{
230230
`"github.com/kat-co/vala"`,
231-
`"github.com/lbryio/lbry.go/extras/errors"`,
231+
`"github.com/lbryio/lbry.go/v2/extras/errors"`,
232232
`"github.com/lbryio/sqlboiler/boil"`,
233233
`"github.com/spf13/viper"`,
234234
},
@@ -266,7 +266,7 @@ func newImporter() importer {
266266
`"strings"`,
267267
},
268268
thirdParty: importList{
269-
`"github.com/lbryio/lbry.go/extras/errors"`,
269+
`"github.com/lbryio/lbry.go/v2/extras/errors"`,
270270
`"github.com/lbryio/sqlboiler/bdb/drivers"`,
271271
`"github.com/lbryio/sqlboiler/randomize"`,
272272
`_ "github.com/lib/pq"`,
@@ -286,7 +286,7 @@ func newImporter() importer {
286286
},
287287
thirdParty: importList{
288288
`_ "github.com/go-sql-driver/mysql"`,
289-
`"github.com/lbryio/lbry.go/extras/errors"`,
289+
`"github.com/lbryio/lbry.go/v2/extras/errors"`,
290290
`"github.com/lbryio/sqlboiler/bdb/drivers"`,
291291
`"github.com/lbryio/sqlboiler/randomize"`,
292292
`"github.com/spf13/viper"`,
@@ -303,7 +303,7 @@ func newImporter() importer {
303303
},
304304
thirdParty: importList{
305305
`_ "github.com/denisenkom/go-mssqldb"`,
306-
`"github.com/lbryio/lbry.go/extras/errors"`,
306+
`"github.com/lbryio/lbry.go/v2/extras/errors"`,
307307
`"github.com/lbryio/sqlboiler/bdb/drivers"`,
308308
`"github.com/lbryio/sqlboiler/randomize"`,
309309
`"github.com/spf13/viper"`,
@@ -316,55 +316,55 @@ func newImporter() importer {
316316
// TranslateColumnType to see the type assignments.
317317
imp.BasedOnType = mapImports{
318318
"null.Float32": {
319-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
319+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
320320
},
321321
"null.Float64": {
322-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
322+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
323323
},
324324
"null.Int": {
325-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
325+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
326326
},
327327
"null.Int8": {
328-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
328+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
329329
},
330330
"null.Int16": {
331-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
331+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
332332
},
333333
"null.Int32": {
334-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
334+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
335335
},
336336
"null.Int64": {
337-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
337+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
338338
},
339339
"null.Uint": {
340-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
340+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
341341
},
342342
"null.Uint8": {
343-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
343+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
344344
},
345345
"null.Uint16": {
346-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
346+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
347347
},
348348
"null.Uint32": {
349-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
349+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
350350
},
351351
"null.Uint64": {
352-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
352+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
353353
},
354354
"null.String": {
355-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
355+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
356356
},
357357
"null.Bool": {
358-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
358+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
359359
},
360360
"null.Time": {
361-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
361+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
362362
},
363363
"null.JSON": {
364-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
364+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
365365
},
366366
"null.Bytes": {
367-
thirdParty: importList{`"github.com/lbryio/lbry.go/extras/null"`},
367+
thirdParty: importList{`"github.com/lbryio/lbry.go/v2/extras/null"`},
368368
},
369369
"time.Time": {
370370
standard: importList{`"time"`},

boilingcore/imports_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func TestCombineTypeImports(t *testing.T) {
246246
},
247247
thirdParty: importList{
248248
`"github.com/lbryio/sqlboiler/boil"`,
249-
`"github.com/lbryio/lbry.go/extras/null"`,
249+
`"github.com/lbryio/lbry.go/v2/extras/null"`,
250250
},
251251
}
252252

@@ -281,7 +281,7 @@ func TestCombineTypeImports(t *testing.T) {
281281
},
282282
thirdParty: importList{
283283
`"github.com/lbryio/sqlboiler/boil"`,
284-
`"github.com/lbryio/lbry.go/extras/null"`,
284+
`"github.com/lbryio/lbry.go/v2/extras/null"`,
285285
},
286286
}
287287

@@ -297,7 +297,7 @@ func TestCombineImports(t *testing.T) {
297297

298298
a := imports{
299299
standard: importList{"fmt"},
300-
thirdParty: importList{"github.com/lbryio/sqlboiler", "github.com/lbryio/lbry.go/extras/null"},
300+
thirdParty: importList{"github.com/lbryio/sqlboiler", "github.com/lbryio/lbry.go/v2/extras/null"},
301301
}
302302
b := imports{
303303
standard: importList{"os"},
@@ -309,8 +309,8 @@ func TestCombineImports(t *testing.T) {
309309
if c.standard[0] != "fmt" && c.standard[1] != "os" {
310310
t.Errorf("Wanted: fmt, os got: %#v", c.standard)
311311
}
312-
if c.thirdParty[0] != "github.com/lbryio/sqlboiler" && c.thirdParty[1] != "github.com/lbryio/lbry.go/extras/null" {
313-
t.Errorf("Wanted: github.com/lbryio/sqlboiler, github.com/lbryio/lbry.go/extras/null got: %#v", c.thirdParty)
312+
if c.thirdParty[0] != "github.com/lbryio/sqlboiler" && c.thirdParty[1] != "github.com/lbryio/lbry.go/v2/extras/null" {
313+
t.Errorf("Wanted: github.com/lbryio/sqlboiler, github.com/lbryio/lbry.go/v2/extras/null got: %#v", c.thirdParty)
314314
}
315315
}
316316

queries/helpers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
null "github.com/lbryio/lbry.go/extras/null"
8+
null "github.com/lbryio/lbry.go/v2/extras/null"
99
)
1010

1111
type testObj struct {

queries/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"database/sql"
55
"fmt"
66

7-
"github.com/lbryio/lbry.go/extras/errors"
7+
"github.com/lbryio/lbry.go/v2/extras/errors"
88
"github.com/lbryio/sqlboiler/boil"
99
)
1010

randomize/randomize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"sync/atomic"
1515
"time"
1616

17-
null "github.com/lbryio/lbry.go/extras/null"
17+
null "github.com/lbryio/lbry.go/v2/extras/null"
1818

1919
"github.com/pkg/errors"
2020
"github.com/satori/go.uuid"

randomize/randomize_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
null "github.com/lbryio/lbry.go/extras/null"
8+
null "github.com/lbryio/lbry.go/v2/extras/null"
99
)
1010

1111
func TestRandomizeStruct(t *testing.T) {

0 commit comments

Comments
 (0)