Borrowed from Yiddish גױיִם (goyim, “gentiles”), from Hebrew גּוֹי (goy, “nation”).
го́им • (góim) m anim pl