This task is easy to use and probably popular: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/go-tool?view=azure-devops. We use it ourselves, in go-infra.
I don't think our team should be in the business of creating an AzDO build task. I think we should try to get support added to the existing task for changing the base URL, at least: https://github.com/microsoft/azure-pipelines-tasks/blob/7abd0ed58d1951b8e3cca71c1401854b78bbc52c/Tasks/GoToolV0/gotool.ts#L97