Gonorrhea

So i recently found out today that i have gonorrhea. For one i am definitely panicking right now and 9/10 the boy who I recently had sex with gave it to me because I got tested last month and was fine but didnt have sex with ANYONE until i met him. We stopped talking now so I don’t know how to tell him that he gave me something because he’s literally so childish and told his friend about everything we did together. The main thing I want to know is if I got treated is it just like a chlamydia treatment where i wait 7 days after receiving the treatment to have sex again? I’m most certainly not having sex anytime soon and now I will be telling any future partners to get tested or if I can see their results beforehand. I have to go to the health department because of this now and how much did treatment cost?? I’m in Maryland.