2、在步骤GOOS=darwin GOARCH=amd64 make> imports runtime: C source files not allowed when not using cgo or SWIG: atomic_amd64x.c defs.c float.c heapdump.c lfstack.c malloc.c mcache.c mcentral.c mem_darwin.c mfixalloc.c mgc0.c mheap.c msize.c os_darwin.c panic.c parfor.c proc.c runtime.c signal.c signal_amd64x.c signal_unix.c stack.c string.c sys_x86.c
make: *** [deps] Error 1
解决方法:参考网站 http://stackoverflow.com/questions/27772831/golang-c-source-files-not-allowed-when-not-using-cgo
https://github.com/golang/go/wiki/InstallFromSource#introduction Introduction
This is a companion to http://golang.org/doc/install/source providing additional instructions for various operating systems. Install C tools
On OS X, a C compiler is bundled in the command line tools for Xcode, and you don't need to install the whole Xcode to compile Go. If you have already installed Xcode 4.3+, you can install command line tools from the Components tab of the Downloads preferences panel. In more recent versions of Xcode, you can use xcode-select --install command to install the command line tools without opening Xcode. To verify you have a working compiler, just invoke gcc in a freshly created Terminal window, unless you see the "gcc: command not found" error, you are ready to go.
On Ubuntu/Debian, use sudo apt-get install gcc libc6-dev. If you want to build 32-bit binaries on a 64-bit system you'll also need the libc6-dev-i386 package.
On RedHat/Centos 6, use sudo yum install gcc glibc-devel. If you want to build 32-bit binaries on a 64-bit system you'll need both glibc-devel.i386 and glibc-devel.x86_64 packages.
On Windows, install gcc with TDM-GCC. (Make sure you add its bin subdirectory to your PATH.) Go does not support the Cygwin toolchain.