I have included "github.com/golang-migrate/migrate" in Gopkg.toml but strangely getting this error on build.
I opened a similar issue today and it was caused by my go version of 1.8. the postgres.go file required go 1.9
@aayush2610 how are you building your project or the CLI?
For reference, here's @aebie's issue: https://github.com/golang-migrate/migrate/issues/67
Thanks @aebie and @dhui this helps!!
Most helpful comment
I opened a similar issue today and it was caused by my go version of 1.8. the postgres.go file required go 1.9