Go Proxy Best Practice: Add Mirror Repository
We highly recommend that you create a remote repository pointing to the default go mirror (gocenter.io) and enter Artifactory as the Git provider. This way, Artifactory will be able to resolve cached public modules without querying the external registry, reducing the chance of rate limiting. For more information, see Set Up Go Proxy Mirror Repositories.
To create a remote repository that serves as a caching proxy for GitHub Enterprise, follow these steps:
Create a new remote repository and set Go as the Package Type.
Set the Repository Key value, and enter your local GitHub Enterprise URL in the URL field.
Enter the user name and personal access token that provides authentication to GitHub Enterprise. For more information about creating a personal access token, see Generate a Personal Access Token in GitHub Enterprise.
In the Git Provider field, select GitHub Server as the Git provider.
Click Save & Finish.