Going to is used to talk about the future based on present intentions or evidence. It has the structure of subject + be + going + to-infinitive. Going to expresses intention when a decision has already been made before speaking, such as saying "I'm going to buy a car" after winning the lottery. Going to also makes predictions about the future based on present circumstances, like predicting "It's going to snow" when seeing a dark sky.