增加固定Map定义

This commit is contained in:
刘祥超
2023-03-23 10:52:52 +08:00
parent c4b1790102
commit 1a05402076
3 changed files with 106 additions and 0 deletions

View File

@@ -7,6 +7,8 @@ import (
"sync"
)
// FixedSet
// TODO 解决已存在元素不能按顺序弹出的问题
type FixedSet struct {
maxSize int
locker sync.RWMutex