mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
generics
This commit is contained in:
13
collections/list.go
Normal file
13
collections/list.go
Normal file
@ -0,0 +1,13 @@
|
||||
package collections
|
||||
|
||||
type List[T any] interface {
|
||||
Add(T)
|
||||
Delete(T)
|
||||
Count() int
|
||||
ToSlice() []T
|
||||
}
|
||||
|
||||
|
||||
type Queue interface{
|
||||
|
||||
}
|
Reference in New Issue
Block a user