Added because “golly” is also attested as a (trademark, dated, often offensive) noun referring to a golliwog doll.
Definitions
A dated (trademark, often offensive) term for a golliwog doll, once used as a merchandising figure on British jam jars. In the 1960s he collected the little metal Golly badges that came with jars of marmalade.