Gastly is not in Pokémon Gold. It's a Generation I Pokémon, only catchable in Red, Blue, Yellow (and FireRed/LeafGreen).
In Gold, you can catch its evolutions in Union Cave (Route 12):
To get Gastly itself, trade from a Gen I game or use Pokémon Bank/HOME from a compatible title.