Convert to proper go structure.