As the README says, dgo 2.0 is only compatible with dgraph 1.1. You will have to change the import in your code to -
github.com/dgraph-io/dgo/v2
github.com/dgraph-io/dgo/v2/protos/api
As the README says, dgo 2.0 is only compatible with dgraph 1.1. You will have to change the import in your code to -
github.com/dgraph-io/dgo/v2
github.com/dgraph-io/dgo/v2/protos/api