diff --git a/source/go-bindata/README.md b/source/go-bindata/README.md index e034564..e74a0aa 100644 --- a/source/go-bindata/README.md +++ b/source/go-bindata/README.md @@ -24,8 +24,13 @@ func main() { func(name string) ([]byte, error) { return migrations.Asset(name) }) + + d, err := WithInstance(s) + if err != nil { + t.Fatal(err) + } - m, err := migrate.NewWithSourceInstance("go-bindata", s, "database://foobar") + m, err := migrate.NewWithSourceInstance("go-bindata", d, "database://foobar") m.Up() // run your migrations and handle the errors above of course } ```