Go Modules on Badger and Dgraph

Oh I just re-read and saw this. I think what you want in this case is to take the “major subdirectory” approach as described here.

Basically you put your v2 in a v2 directory inside your repo, with a go.mod file in that directory, and then clients find your modules under that path whether or not they are using Go modules.