func (list *SliceList) Size() int32 {
	return list.size
}
Size returns the size of the list
package utils
import (
	"sync"
	"sync/atomic"
)
type SliceList struct {
	items *sync.Map
	size  int32
}
func NewSliceList() *SliceList {
	return &SliceList{size: 0, items: &sync.Map{}}
}
func (list *SliceList) Add(key, value interface{}) {
	if nil == value {
		return
	}
	atomic.AddInt32(&list.size, 1)
	list.items.Store(key, value)
}
func (list *SliceList) Contains(key interface{}) bool {
	_, ok := list.items.Load(key)
	return ok
}