eapache/queue — pull request #1 by aybabtme (2014-06-18 19:56:01+00:00)
Title: Add a mean to get an index, allowing iterations of the queue.

With this change, one can iterate over the queue:

```go
for i := 0; i < q.Length(); i++ {
if q.Get(i).(int) != i {
t.Errorf("index %d doesn't contain %d", i, i)
}
}
```

Tests output:

```
$ go test -v
=== RUN TestQueueLength
--- PASS: TestQueueLength (0.00 seconds)
=== RUN TestQueueGet
--- PASS: TestQueueGet (0.01 seconds)
=== RUN TestQueueGetOORPanic
--- PASS: TestQueueGetOORPanic (0.00 seconds)
queue_test.go:51: got panic as expected: index out of range
queue_test.go:65: got panic as expected: index out of range
PASS
ok	github.com/eapache/queue	0.022s
```