'how to use go private repository from nexus?

I 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?

common-util/@v/list: 401 Unauthorized


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source