STD Testing it self can be very embarrassing to people and there is a certain taboo in the society about STD so it can be a big moment in your life when you actually get your STD test positive. Taking it immaturely is not the right way to deal with it. Panicking is actually going to make everything worse and will definitely push you to take a lot of impulsive decisions. But you should know most of the times STD is treatable and you are not alone in this situation.
The first step you should take after getting the news is to inform whoever you have had your sexual encounters with and also ask them to get a check up too. Ignoring that would be lethal for your partners. The conversation you will have might not be very calm and soothing but it is your duty as a person and as a loved one to inform them and encourage them for STD Testing and treatment if needed. Then you should obviously follow the treatment routine as your doctor has scheduled for you thoroughly. Many a time STDs can be cured only with medication so in that case the routine will not be something to worry about rather you will be done as quickly as you can imagine and get along with your daily routine.
The ground reality of the situation is far more than simple, and it is very true whether we agree to it or not. The reality is that there is no such awareness in a lot of corners of the world. Spreading the word is the least we can do. Also, not to be ashamed or scared about any kind of embarrassment, remember your life is much more important than those petty embarrassment issues. Just know you have not done anything wrong.