1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00
This commit is contained in:
2022-05-05 00:24:28 +08:00
parent d59666d9e6
commit d0e055016b
3 changed files with 57 additions and 6 deletions

View File

@ -7,7 +7,10 @@ type List[T any] interface {
ToSlice() []T
}
type Queue interface{
}
type Queue[T any] interface {
Put(T)
Poll() T
Peek() T
Size() int
IsEmpty() bool
}