That's the normal way of pronouncing god natt in most of Sweden, so your friend is right about that. But the spelling gonatt is colloquial, and it has nothing to do with Gothenburg at all.
That is because, natt, along with kväll, morgon, dag, and eftermiddag are all common gender. So, they are "god" instead of "gott", which is for neuter nouns.