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: reading 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.