queue

Install

go get -u github.com/EbicHecker/queue

Example:

package main

import (
	"fmt"
	"github.com/EbicHecker/queue"
)

func main() {
	concurrentQueue := queue.NewConcurrentQueue[string]()
	concurrentQueue.Enqueue("Hello, World!")
	fmt.Println(concurrentQueue.Dequeue())
}

GitHub

View Github