diff --git a/queue_test.go b/queue_test.go index 02fa06c..80ae7c4 100644 --- a/queue_test.go +++ b/queue_test.go @@ -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) }