queue.go
func (q *Queue) ToSlice() []interface{} {
	q.key.RLock()
	defer q.key.RUnlock()

	if q.underlyer == nil {
		return []interface{}{}
	}
	return q.underlyer.ToSlice()
}
func (q *Queue) ToSlice() []interface{} {
	q.key.RLock()
	defer q.key.RUnlock()

	if q.underlyer == nil {
		return []interface{}{}
	}
	return q.underlyer.ToSlice()
}
func ( q * Queue ) ToSlice ( ) [ ] interface { } { q . key . RLock ( ) defer q . key . RUnlock ( ) if q . underlyer == nil { return [ ] interface { } { } } return q . underlyer . ToSlice ( ) }
// ToSlice converts a Queue into a slice.
ToSlice converts a Queue into a slice .