Documentation
¶
Index ¶
- type Enumerator
- type EnumeratorAction
- type S
- func (s *S[T]) Add(o T)
- func (s *S[T]) Append(o *S[T])
- func (s *S[T]) Enumerate(f Enumerator[T], forUpdate bool) (n int, err error)
- func (s *S[T]) FromJSONlist(j []byte) (err error)
- func (s *S[T]) Get(idx int) (elem T, exists bool)
- func (s *S[T]) GetAll() []T
- func (s *S[T]) JSON() (j []byte, err error)
- func (s *S[T]) JSONlist() (j []byte, err error)
- func (s *S[T]) Len() int
- func (s *S[T]) Lock()
- func (s *S[T]) Pop() (elem T, exists bool)
- func (s *S[T]) RLock()
- func (s *S[T]) RUnlock()
- func (s *S[T]) Replace(idx int, elem T) (err error)
- func (s *S[T]) Reset(capacity int)
- func (s *S[T]) Set(o []T)
- func (s *S[T]) Unlock()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enumerator ¶
type EnumeratorAction ¶
type EnumeratorAction int
const ( EnumeratorActionContinue EnumeratorAction = iota EnumeratorActionDelete EnumeratorActionFinish )
Click to show internal directories.
Click to hide internal directories.