Codebase list golang-gopkg-eapache-queue.v1 / 04e142a
+= notation Andrew Gillis 7 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
7070 func (q *Queue) Get(i int) interface{} {
7171 // If indexing backwards, convert to positive index.
7272 if i < 0 {
73 i = q.count + i
73 i += q.count
7474 }
7575 if i < 0 || i >= q.count {
7676 panic("queue: Get() called with index out of range")