How to use go private repository from nexus?

have a private repository on nexus, which is where I created a private repository for my golang project

I’ve already run export GOPRIVATE or GOPROXY but it needs authentication, in the documents I’m looking for, there’s no way, has anyone experienced this?

go: bitbucket.org/company/common-util@v0.0.0-00010101000000-000000000000: reading https://registry.company.co.id/repository/go-group/bitbucket.org/company/common-util/@v/v0.0.0-00010101000000-000000000000.mod: 401 Unauthorized

hi guys maybe you did not create role for golang repo and you should create user for go repo and give all permission about go to authorize i hade the same problem for python repo and after this recommend
it solved.