想使用 list.List 结构做队列管理。
type DList list.List
var plist *DList
func (*DList)AddName(){}
然而初始化 Dlist 的时候却失败了
plist = list.New()
go run testDevList.go
# command-line-arguments
./testDevList.go:111: cannot use list.New() (type *list.List) as type *DevList in assignment
有疑问加站长微信联系(非本文作者)