Update commented out imports to use v3

This commit is contained in:
Dale Hui 2018-09-14 14:12:07 -07:00
parent 16dea48c82
commit 6c02d65563
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ func ExampleNewWithDatabaseInstance() {
// Create driver instance from db. // Create driver instance from db.
// Check each driver if it supports the WithInstance function. // Check each driver if it supports the WithInstance function.
// `import "github.com/golang-migrate/migrate/database/postgres"` // `import "github.com/golang-migrate/migrate/v3/database/postgres"`
instance, err := dStub.WithInstance(db, &dStub.Config{}) instance, err := dStub.WithInstance(db, &dStub.Config{})
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
@ -154,7 +154,7 @@ func ExampleNewWithSourceInstance() {
// Create driver instance from DummyInstance di. // Create driver instance from DummyInstance di.
// Check each driver if it support the WithInstance function. // Check each driver if it support the WithInstance function.
// `import "github.com/golang-migrate/migrate/source/stub"` // `import "github.com/golang-migrate/migrate/v3/source/stub"`
instance, err := sStub.WithInstance(di, &sStub.Config{}) instance, err := sStub.WithInstance(di, &sStub.Config{})
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)