queue test
This commit is contained in:
parent
8afa421531
commit
22de0f11bf
|
@ -54,8 +54,10 @@ func GetItemTest(senderChanel chan interface{}) {
|
|||
}
|
||||
//log.Println(items.Len())
|
||||
for i := 0; i < items.Len(); i++ {
|
||||
d := items.Index(i)
|
||||
log.Println(d)
|
||||
d := items.Index(i).Elem().Interface()
|
||||
dd := d.(Item)
|
||||
|
||||
log.Printf("data: %s , periorty: %d", dd.Value, dd.Priority)
|
||||
}
|
||||
//fmt.Println(sc)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user