Sounds like depression to me: but I am NOT AN EXPERT SO DO NOT LISTEN TO MY DIAGNOSIS.
On that note, however, maybe you could consider seeing a professional? It might help, and if it doesn't then you just stop, you'be got nothing to lose.
That aside, life is what you make of it, and it can be great. It won't feel like that at the moment, but it really can be. Have you considered trying new things when going out with friends? also, what're you doing at uni, is it not interesting to you? Do you have any interests that you could pursue to try and get yourself going again?