Green’s Dictionary of Slang

dog v.2

1. a euph. for damn v.

2. past participle of sense 1, esp. as I’ll be dogged...

In exclamations

dog my cat(s)/doggone/hide/melts! (also dog on my cat!)

[mid-19C+] (US) a general excl. of amazement, annoyance, surprise.