Monthly Archives: November 2019

The challenge of type asserting []interface{} to string slices.

 When working with JSON data it can be easy to silently miss converting data, if one is not doing the typical unmarshalling into a well defined struct but instead into a generic map[string]interface{}. Given the following data block: We can unmarshal it via If we then try and extract the data element and convert it […]

Read More