// Push pushes specified value to the back of the queue.
Push pushes specified value to the back of the queue.
// Push pushes specified value to the back of the queue .
func (fifo *FIFO) Push(value interface{}) {
	fifo.mu.Lock()
	defer fifo.mu.Unlock()
	li := &Item{nil, value}
	if fifo.last == nil {
		fifo.last = li
	} else {
		fifo.last.next = li
		fifo.last = fifo.last.next
	}
	if fifo.first == nil {
		fifo.first = li
	}
	fifo.length++
}
func ( fifo * FIFO ) Push ( value interface { } ) { fifo . mu . Lock ( ) defer fifo . mu . Unlock ( ) li := & Item { nil , value } if fifo . last == nil { fifo . last = li } else { fifo . last . next = li fifo . last = fifo . last . next } if fifo . first == nil { fifo . first = li } fifo . length ++ }
Push pushes specified value to the back of the queue.
Push pushes specified value to the back of the queue .