Take some time right now to think about what steps you can take to keep yourself from landing in this position again. What would you do differently if you had the chance? Do you regret the shame you put on God's name? the pain you caused others? What is in your power to make this situation better?
God can restore the situation, but you have to act. Ask the Lord to forgive you and to help the person forgive you as you go to them. Being sorry is good; it shows your heart is moldable. Instead of beating yourself up for days or weeks or years, take that time and energy and use it to improve yourself and this situation. Taking action on what the Lord is leading you to do shows your faith and will bring you blessings. I need you to help me the same way I am helping you because I sin too. Now give me a hug because I love you so, so, so much!"
I may say some or all of that. While it isn't perfect, it is much better than ripping them apart and stealing all hope from them. Correction and encouragement are my goals, not condemnation.