mirror of https://github.com/status-im/migrate.git
Update README.md
This commit is contained in:
parent
365b0565de
commit
4a2a810c20
|
@ -1,25 +1,17 @@
|
||||||
# go-bindata
|
# go-bindata
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
||||||
```
|
|
||||||
|
### Read bindata with NewWithSourceInstance
|
||||||
|
|
||||||
|
```shell
|
||||||
go get -u github.com/jteeuwen/go-bindata/...
|
go get -u github.com/jteeuwen/go-bindata/...
|
||||||
cd examples/migrations && go-bindata -pkg migrations .
|
cd examples/migrations && go-bindata -pkg migrations .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```go
|
||||||
```
|
|
||||||
// TODO
|
|
||||||
// this will restore the assets in a tmp directory and then
|
|
||||||
// proxy to source/file
|
|
||||||
// go-bindata must be in your $PATH
|
|
||||||
migrate -source go-bindata://examples/migrations/bindata.go
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
```
|
|
||||||
import (
|
import (
|
||||||
"github.com/mattes/migrate"
|
"github.com/mattes/migrate"
|
||||||
"github.com/mattes/migrate/source/go-bindata"
|
"github.com/mattes/migrate/source/go-bindata"
|
||||||
|
@ -38,7 +30,13 @@ func main() {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Read bindata with URL (todo)
|
||||||
|
|
||||||
|
This will restore the assets in a tmp directory and then
|
||||||
|
proxy to source/file. go-bindata must be in your `$PATH`.
|
||||||
|
|
||||||
|
```
|
||||||
|
migrate -source go-bindata://examples/migrations/bindata.go
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue