some testing ang enchancments

This commit is contained in:
2026-02-06 13:46:09 +03:00
parent 948ac0a1b0
commit 4ba746956a
7 changed files with 286 additions and 94 deletions

View File

@@ -1,4 +1,4 @@
package extypes
package extypes
import (
"errors"
@@ -15,7 +15,7 @@ type Queue[T any] struct {
func CreateQueue[T any](size uint64) *Queue[T] {
return &Queue[T]{
queue: make([]T, 0),
queue: make([]T, 0, size),
size: size,
}
}