Example #1
0
func PushQueue(beginIndex int, msgQueue *message.MessageQueue) {
	startIndex := 0
	for {
		testMsg := &MessageTest{value: (startIndex + beginIndex)}
		msgQueue.Push(testMsg)
		startIndex = startIndex + 1

	}
}