gitee.com/sy_183/go-common@v1.0.5-0.20231205030221-958cfe129b47/container/sync-slice.go (about) 1 package container 2 3 import "sync/atomic" 4 5 type SyncSlice[E any] struct { 6 p atomic.Pointer[[]E] 7 s1 []E 8 s2 []E 9 } 10 11 func (s *SyncSlice[E]) Append(es ...E) { 12 13 }