What is the meaning of -gon?

Forms the names of plane figures containing a given number of internal angles, and thus bounded by that number of line segments (polygons).

forms plurals of certain nouns ending with an "i" sound, as opposed to -kon and -di

-gon

-gon

Source: wiktionary.org