From 22de0f11bf4298a8de0e61432b15ec44056eaf6e Mon Sep 17 00:00:00 2001 From: geek Date: Thu, 11 May 2017 18:57:59 +0900 Subject: [PATCH] queue test --- queue_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) }