Green’s Dictionary of Slang

sonofagun! excl.

also son of a gun!
[sonofagun n.]

a general excl.

H. Williams ‘Jambalaya’ 🎵 Son of a gun, we’ll have big fun on the bayou.
[UK]Sun. Times Mag. 23 Sept. 77: ‘Son-of-a-gun!’ he wheezed, ‘it’s that Randy Seiler, boy!’.
[US]L. Kramer Faggots 258: You’re right. Son of a gun, just what I’ve been thinking recently.
[UK]Indep. Rev. 20 Mar. 3: Son of a gun!