Skip to content

Commit

Permalink
docs: remove depreceated call to Run and replace with RunContext (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewrobinsondev authored Jan 6, 2025
1 parent 3c91df1 commit 779024d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/go-migrations/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package main

import (
"context"
"flag"
"log"
"os"
Expand Down Expand Up @@ -43,7 +44,8 @@ func main() {
arguments = append(arguments, args[3:]...)
}

if err := goose.Run(command, db, *dir, arguments...); err != nil {
ctx := context.Background()
if err := goose.RunContext(ctx, command, db, *dir, arguments...); err != nil {
log.Fatalf("goose %v: %v", command, err)
}
}

0 comments on commit 779024d

Please sign in to comment.