Exactly what Fermin said. Goldfish are coldwater fish while bettas are tropical. If you keep them together either one or both would truly be uncomfortable with the water temperature. It would be best to get the betta his own tank. If you want to keep other fish in the new betta tank it would need to be at least 10 gallons. Then you could keep cories or platies or some other small school of fish.