queue test

This commit is contained in:
geek 2017-05-11 18:57:59 +09:00
parent 8afa421531
commit 22de0f11bf

View File

@ -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)
} }