How to talk to my future partners?

OK so I used to mess around with a ex friend of mine and come to find out he gave me an std that won't go away..... how would I go about telling my future partners that I have it? I'm scared to death about the backlash I will get. I have anxiety attacks just thinking about it.