Struct is empty after Json unmarshal when accessed by another package
问题 I'm am using a struct Contact that has a Load() method. The idea is that Load() populates Contact 's fields with data. The data is unmarshalled from json returned by a server. Once loaded, I want to be able to access the data on Contact . I know that the json is unmarshalling correctly because I can print the data to the console within Load() , immediately after it has been unmarshalled. However, this data is not present on Contact once it has been loaded. So when I create a new Contact and