If you've discovered mold on your clothing, let's hope you found it early. The sooner you can start the cleaning process for mold and mildew, the better. The longer mold stays on your clothes, the harder it is to remove and the smellier it's going to be. Step one in the process is to get the clothes out of the moist environment right away and out into the hot sun (if possible). While your clothes are baking outside, clean up the area where the clothing was stored to make sure you don't have any reoccurrences. The heat will dry the clothes out and help to kill the mold, which we all know is a living fungus.
After your clothes are completely dried, you'll probably still see the areas where mold and mildew have stained them. There are a variety of products you can use at this point to pre-treat your clothes before the wash. If they're whites and you aren't afraid of adding chemicals to your clothes, then bleach can be added. Mix the bleach with water and spray it on the affected areas until it's soaked through. Sodium borate, more commonly known as Borax, or other spray stain removers can also be used for pre-treatment. If you're not into chemicals at all, then try soaking the clothes in a solution of cold water and one cup of white vinegar.
Once you've pre-treated the clothing, you need to wash and dry them at least two times. Hot water is best for killing mold spores, so if you have a sanitize setting on your washer, then use it. The same things you used for pre-treatment can also be added to your wash, so if you want to throw in some bleach or white vinegar, feel free. After one complete wash and dry, check the affected areas with your eyes and nose. If they pass the sight and sniff tests then you should be OK. If not, give it another wash.