1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00
This commit is contained in:
2022-05-20 17:17:31 +08:00
parent d4d68dc263
commit ed02794b04
11 changed files with 436 additions and 11 deletions

View File

@ -15,6 +15,7 @@ type ArrayStack[T any] struct {
lock sync.Mutex // 为了并发安全使用的锁
}
// 初始化堆栈
func NewArrayStack[T any]() *ArrayStack[T] {
return &ArrayStack[T]{}
}