I'd prefer if "-g" were left out of the above line, then added here if GOOS != "darwin". Slightly less brittle.