[x] I used gofmt for formatting the code before submitting the pull request.
This PR introduces an new function that enables setting an Artifactory server as dependencies resolution registry for Golang projects.
This logic previously existed in security-cli, and got removed from there in this PR: https://github.com/jfrog/jfrog-cli-security/pull/21
[![👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
[x] I used gofmt for formatting the code before submitting the pull request.
This PR introduces an new function that enables setting an Artifactory server as dependencies resolution registry for Golang projects. This logic previously existed in security-cli, and got removed from there in this PR: https://github.com/jfrog/jfrog-cli-security/pull/21