Update gocode.cpp

fix type bug