My program was building perfectly with go 1.4.2. After installing go 1.5, I am getting following error.
imports runtime: C source files not allowed when n
If you use brew to upgrade your go to Go 1.5. Here is my step to make it work:
brew
Go env
BTW: You need do the same thing if you want to switch from Go 1.5 back Go 1.4.2 via brew switch go 1.4.2.
brew switch go 1.4.2