You will need to figure out a way to keep their feed from each other. Because goats and pigs are both...well...em...pigs at feeding time. Keeping the goats food up from the pigs shouldn't be a problem, but keeping the goats out of the pigs food will be.
Mine pasture together, but we stall in different areas at night, and that is when we feed. Night and again in the morning.
Redhen, I have had just about everything in the house at one time or another. From piglets to goats and yes, even a calf or two on occasion. We do what we need to do. And if your like me, you can tell exactly when an animal is ready to poo!