If you’re not using go modules, you should be able to import it as:
"github.com/dgraph-io/dgo"
"github.com/dgraph-io/dgo/protos/api"
and it will import the latest version.
If you’re not using go modules, you should be able to import it as:
"github.com/dgraph-io/dgo"
"github.com/dgraph-io/dgo/protos/api"
and it will import the latest version.