STD conversations with S/O

How would y’all approach this conversation ?....You get an STD from a past relationship and want to tell your new boo but you don’t want them to leave you. What do you say ?