Ye Gods Meaning

(idiomatic, dated, euphemistic) You gods! Used to express surprise or incredulity.

Example: 1851, Herman Melville, Moby-Dick (Chapter 2)
  Would he not far rather lay him down lengthwise along the line of the equator; yea, ye gods! go down to the fiery pit itself, in order to keep out this frost?