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