Hoping to have an interface that has attributes based on another interface. Is that possible?
Contrived Example:
type interface cheese {
GetId() string
}
type interface cheeses {
GetCheeses() []cheese
}
type CheeseStruct struct {
GetId() string
}
type BowlOfCheeses struct {
GetCheeses() []*CheeseStruct
}
func doSomething(thing cheeses) {
}
bowlOfCheeses := BowlOfCheeses{
[]*CheeseStruct{
&CheeseStruct{}
}
}
doSomething(bowlOfCheeses) # the match doesn't seem to be recognized