Ah well there's your problem!
I'm always nervous about installing language toolchains from the standard repositories on CentOS, because they are often very out of date, or intertwined with the rest of the base system in awkward ways (this is more of a gcc concern perhaps). I have no idea what the state of Go on CentOS is, so this could be baseless nervousness in this case.
If there is a software collection for a toolchain, that may be a better bet than whatever is in the main repo. There is one for Go:
https://www.softwarecollections.org/en/scls/rhscl/go-toolset...
I can't work out what's in it, so i have no idea if it would have made life any easier around your networking or Git issues. I can't even tell what version of Go is in it. The fact that there isn't a Go toolset for CentOS 8 hints that it might be quite out of date.