title: How to build a library with cgo using visual studio compiler?
body: <p>It is a bit of a newbie question, but I can't seems to make it work.</p>
  
  <p>I know I should use CC=, CXX= and i know the vs compiler name is cl though I'm not sure it is also true for the c++ compiler.</p>
  
  <p>Now assuming the compiler name is cl for both I get the error:
  go build CC=cl cxx=cl --buildmode=c-shared -o ../lib/core.dll</p>
  
  <p>I get: can't load package: package CC=cl: cannot find package "CC=cl" in any of: ...</p>
  
  <p>If on the other hand I try to compile without the CC / CXX options then it is all working good.</p>
  
  <p>SO to sum it up:
   1. what is the c and c++ compiler name for vs?
   2. why i get an error when trying to choose which compiler it will use?</p>