In Hebrew and Yiddish means the "people". They use the word in reference to a non-Jewish person. The word meaning could be absolutely neutral or uncomplimentary, depending on the context.
1. Her second husband, very nice man, was a goi.
2. No surprise this goi is favoring Hamas.