What does a guy mean by a goodnight text?

This is probably a dumb question but oh well. We were texting on and off for a couple of hours then I texted him I was going to bed. He replied goodnight! :) What does that mean? IS it just a friendly thing or an interested thing?
What does a guy mean by a goodnight text?
Post Opinion