"something tasty," 1745, from good; adj. use for "sentimentally proper" is 1830. Goody also used since 1559 as a shortened form of goodwife, a term of civility applied to a married woman in humble life; hence Goody Two-shoes, name of heroine in 1760s children's story who exulted upon acquiring a second shoe.
A special treat; something nice to eat: a huge basket of goodies(1940s+)
Something nice; a pleasant feature; something very desirable: headlight with a middle beam, the goodie you've been waiting for/ The local population took to the goodies of Western culture with avidity(1940s+)
(also good guy) Someone on the side of virtue and decency, in contrast with a villain: It's much easier to make a girl a baddie than a goodie(1930s+ Motion pictures)