Yes, "gotta" is "(have) got to", whereas "(be) going to" comes out as "gonna".
Don't ever put these in your writing!! These are just how we express a mumbled form of regular grammar. Even when speaking, if your stress and rhythm is not entirely natural, you could sound childish.
Stick with normal, regular grammar and real words, and you'll have no problem.