Etymology
Today it means: Expressing surprise or affirmation. Full definition →
Euphemistic form of godso.
Etymology from Wiktionary, CC BY-SA 4.0.