New constructs and returns a new Queue.
()
| 19 | |
| 20 | // New constructs and returns a new Queue. |
| 21 | func New() *Queue { |
| 22 | return &Queue{ |
| 23 | buf: make([]interface{}, minQueueLen), |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | // Length returns the number of elements currently stored in the queue. |
| 28 | func (q *Queue) Length() int { |
no outgoing calls