Ghosted

So I’ve been feeling really shitty for the past few days bc I was ghosted by a guy that I really truly liked. It just sucks because I actually had feelings for him. Feelings i don’t get for people often. But I’m glad that ended bc now I know his true personality. It just sucks I guess getting no explanation for what made him lose interest (although I know one of the reasons is that he found a girlfriend while we were talking) Anyways that took a huge toll on my confidence and now I’m really trying to gain it back. Any advice?