Couch migrator is a library that provides migration management operations.
go get -v github.com/Devoter/couch-migratorThe following instructions are only recommendations, of course, you can use the library as like as you wish.
To use the library you should create migrations functions. It is intuitive to declare migrations package in your project. All your migrations should be placed in one slice of type []migration.Migration.
There is a simple way to declare the migrations slice:
// migrations/migrations.go
package migrations
import "github.com/Devoter/couch-migrator/migration"
// Migrations is a list of all available migrations.
var Migrations = []migration.Migration{}