I have the following block of code:
package main
import (
"fmt"
"container/list"
)
type Foo struct {
foo list //want a reference to the list implementation
//supplied by the language
}
func main() {
//empty
}
When compiling I receive the following message:
use of package list not in selector
My question is, how do I reference list
within a struct
? Or is this not the proper idiom in Go for wrapping structures. (Composition)