I have created a struct, this struct has contains two list types within it. When I try to instantiate my struct I receive the error
cannot use list.New() (type *list.List) as type list.List in field value
I am using the golang playground
The struct
type myStruct struct {
name string
messages list.List
users list.List
lastUsed time.Time
}
Instantiating the struct
var myVar = myStruct{"hello", list.New(), list.New(), time.Now()}