You're most likely going to get a lot of responses to this question...all telling you that you need like 10g per fish. I have three medium goldfish (one moor, two fantails) in a 10g right now...but I know that in maybe six months I need to move up a size. It is fine for a temporary basis, but do keep in mind that you're going to need an upgrade as they grow. Mine have grown considerably from when I purchased them. They were about 2" and now they are 3" with tail. It's been about a good two months that I've had them.
(I hear a lot of people jump down a persons throat for trying to put one goldfish in a 10g)
I use an excellent filter, because as you probably know goldfish are messy eaters and poop A LOT. haha If you clean it often, change the water out often, get a good filtering system going, and prepare for a move within six months or so then go for it. Otherwise get a 20g or buy a different type of fish.