The Go client works through a Git repository which hosts the Go module source code, and does not provide a way to directly deploy modules to Artifactory. To deploy your Go module to Artifactory, use the JFrog CLI.
Default Deployment Repository
If you are deploying Go modules to a Virtual Repository, make sure to set one of the local Go repositories that it aggregates as the Default Deployment Repository.
To deploy a Go module to an Artifactory repository, you need to run the following JFrog CLI command from your project’s root directory:
jf gp <GO_REPO_NAME> <VERSION> --server-id rt-server
In the CLI command above, replace the placeholders as follows:
<GO_REPO_NAME>: The name of your Go repository in Artifactory.
<VERSION>: The version of the Go module that you are deploying to Artifactory.