I also got stuck as I was trying to a go get it was related to git. Please find the solution as follows:
I tried the following in the terminal:
sudo xcodebuild -license
That opened the agreement. Now you need to go all the way to end and type "agree".
That will take care of all go get issues.
The solution was quite interesting i hope it helps you.