Most goldfish produce a lot of waste.
I have learned this the hard way and lost a few of them when I was a complete newbie.
Fancy goldfish will require at least 20Gallon each, and other goldfish require ponds.
For a 10 gallon tank, you could get a few small fish. But as suggested, you should...