You can also do this automatically with some open source tools like mod. Following code shows how to migrate to v2 automatically with it. go install github.com/marwan ...