Barack Obama is staying warm while most of the country is dealing with extreme weather .... hitting up a golf course in Hawaii ahead of the holidays.

The former prez was spotted getting in a Round of Golf in Hawaii on Thursday ... sporting a pink shirt, white shorts and a pair of sunnies.

Barack appeared to be with pals, but still had his game face on .