Implement custom unmarshaling for complex types
masterTo handle complex data types (like JSON strings in a cell), implement the encoding.BinaryUnmarshaler interface on your custom type. The library will automatically use UnmarshalBinary to populate the field.
type Temp struct {
Foo string
}
// UnmarshalBinary allows custom logic for cell values
func (t *Temp) UnmarshalBinary(d []byte) error {
return json.Unmarshal(d, t)
}