Is it possible to serialize a structure like the below using gob
or perhaps something like MsgPack
. I haven’t used either in combination with generics.
type EventTimes = []float32
type MetaData interface {
ID() string
EventTimes() EventTimes
}
type user[T MetaData] struct {
userData MetaData
relatedUsers map[string]*user[T]
}