github.com/golang-migrate/migrate/v4/source.Migrations.index (field)
16 uses
github.com/golang-migrate/migrate/v4/source (current package)
migration.go#L37: index uintSlice
migration.go#L43: index: make(uintSlice, 0),
migration.go#L69: i.index = make(uintSlice, 0)
migration.go#L71: i.index = append(i.index, version)
migration.go#L73: sort.Sort(i.index)
migration.go#L77: if len(i.index) == 0 {
migration.go#L80: return i.index[0], true
migration.go#L85: if pos >= 1 && len(i.index) > pos-1 {
migration.go#L86: return i.index[pos-1], true
migration.go#L93: if pos >= 0 && len(i.index) > pos+1 {
migration.go#L94: return i.index[pos+1], true
migration.go#L118: if len(i.index) > 0 {
migration.go#L119: ix := i.index.Search(version)
migration.go#L120: if ix < len(i.index) && i.index[ix] == version {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |