Usually on goldfish, the males can show breeding stars on their gills or pectoral fins.
The only other way I know of is that just before the anal fin there is a vent, males will have a concave vent whereas females have a convex vent. But it is difficult to gender goldfish when they are young, it's easier when their older or during breeding season

Pictures are here and more details (
Link is not visible to guests. Please register to view.)