Green’s Dictionary of Slang

gom n.1

also goom
[Lancashire dial.]

a euph. for God, and as such used in mild oaths.

[UK]J. Reynolds Blind Bargain II ii: By Gom! – I’ll make them stand in white sheet – I knew it all along.
[UK] ‘Song’ Sailor’s Vocal Repository 28: I seized upon madam, by gom she were fuddled.
[Scot] in J. Strang Glasgow and Its Clubs 585: By gom! that’s an ill-faured neebour.
[Aus]K.S. Prichard Roaring Nineties 139: By goom, if they come samplin’ reef of mine, I’d bring out me bluderbus.