I ran into the same problem you did, and it was because they have refactored the go-sdl2 project to use different paths than in the previously mentioned examples.
This one-liner is in my Dockerfile that I use to solve this:
bash -c 'go get -v github.com/veandco/go-sdl2/{sdl,img,mix,ttf}'...