What's the difference?
Depends on the gender of the noun. For instance "en god bil" versus "et godt hus".
Just to add, godt can be used as an adverb, equivalent to the English "well". For example: "Sov godt" = "Sleep well"