Thanks for reply. However as someone pointed out on Slacks. The problem is because of the way go serializes structs. Every works as expected if I change UserContactDetails to * UserContactDetails, because empty elements are no longer initialized to default values and are simply omitted.
2 Likes