How to tell if a guy don't want to be your friend anymore?

I became close with one guy recently that I have known for 2 years now. We are friends but sometimes I get these weird vibes that he stopped being interested in me, and doesn't want to be friends anymore. How can I be sure?
How to tell if a guy don't want to be your friend anymore?
Post Opinion