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