get gocode in the same manner as gom