Size of the tank is a must to be able to answer that. Goldfish are very dirty fish and require a lot of space to themselves. I personally wouldnt put anything else with a goldfish in something smaller than a 20gal. I ran a Black moor in a 50gal for 6 years solo, a bit over the top I know.
Goldfish are also cold water fish so the heater isnt needed. That also means youll want to put other cold water fish with it. You could do cherry shrimp (though a bit of them will be food) or other fish fast enough to not be ate.