Move lib/goose into top level pkg

pull/1/head
Vojtech Vitek (V-Teq) 2016-02-26 14:50:27 -05:00
parent 8488cc47d9
commit 47e4c98a97
17 changed files with 11 additions and 9 deletions

View File

@ -12,7 +12,7 @@ You can manage your database's evolution by creating incremental SQL or Go scrip
This will install the `goose` binary to your `$GOPATH/bin` directory. This will install the `goose` binary to your `$GOPATH/bin` directory.
You can also build goose into your own applications by importing `bitbucket.org/liamstask/goose/lib/goose`. Documentation is available at [godoc.org](http://godoc.org/bitbucket.org/liamstask/goose/lib/goose). You can also build goose into your own applications by importing `github.com/pressly/goose`. Documentation is available at [godoc.org](http://godoc.org/github.com/pressly/goose).
NOTE: the API is still new, and may undergo some changes. NOTE: the API is still new, and may undergo some changes.

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"bitbucket.org/liamstask/goose/lib/goose" "github.com/pressly/goose"
"fmt" "fmt"
"log" "log"
"os" "os"

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"bitbucket.org/liamstask/goose/lib/goose" "github.com/pressly/goose"
"fmt" "fmt"
"log" "log"
) )

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"bitbucket.org/liamstask/goose/lib/goose" "github.com/pressly/goose"
"log" "log"
) )

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"bitbucket.org/liamstask/goose/lib/goose" "github.com/pressly/goose"
"log" "log"
) )

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"bitbucket.org/liamstask/goose/lib/goose" "github.com/pressly/goose"
"database/sql" "database/sql"
"fmt" "fmt"
"log" "log"

View File

@ -1,8 +1,9 @@
package main package main
import ( import (
"bitbucket.org/liamstask/goose/lib/goose"
"log" "log"
"github.com/pressly/goose"
) )
var upCmd = &Command{ var upCmd = &Command{

View File

@ -1,12 +1,13 @@
package main package main
import ( import (
"bitbucket.org/liamstask/goose/lib/goose"
"flag" "flag"
"fmt" "fmt"
"os" "os"
"strings" "strings"
"text/template" "text/template"
"github.com/pressly/goose/lib/goose"
) )
// global options. available to any subcommands. // global options. available to any subcommands.

View File

@ -105,7 +105,7 @@ import (
"encoding/gob" "encoding/gob"
_ "{{.Import}}" _ "{{.Import}}"
"bitbucket.org/liamstask/goose/lib/goose" "github.com/pressly/goose"
) )
func main() { func main() {