Between "gonna" and "going to", they have the same exact meaning, but "gonna" is how you say it casually while "going to" is a correct/formal/polite way to say it, and in any place where you write it (like on an essay) you will use "going to". When just talking its normal to say "gonna", "lemme"...