Queue in Golang.
Well tested.
import "github.com/FunctionSir/goqueue"
// ... //
q := make(goqueue.Queue[int], 0) // In most cases, must be 0.
if q.Empty() {
// ... //
}
if q.Size() > 10 {
// ... //
}
q.Push(1)
poped := q.Pop()
front := q.Front()
back := q.Back()
// ... //