Documentation
¶
Overview ¶
* @Author: cnzf1 * @Date: 2022-07-20 13:51:53 * @LastEditors: cnzf1 * @LastEditTime: 2023-03-28 18:39:54 * @Description:
Index ¶
- type Set
- func (s *Set) Add(i ...lang.AnyType)
- func (s *Set) AddInt(ii ...int)
- func (s *Set) AddInt64(ii ...int64)
- func (s *Set) AddStr(ss ...string)
- func (s *Set) AddUint(ii ...uint)
- func (s *Set) AddUint64(ii ...uint64)
- func (s *Set) Contains(i lang.AnyType) bool
- func (s *Set) Count() int
- func (s *Set) Keys() []lang.AnyType
- func (s *Set) KeysInt() []int
- func (s *Set) KeysInt64() []int64
- func (s *Set) KeysStr() []string
- func (s *Set) KeysUint() []uint
- func (s *Set) KeysUint64() []uint64
- func (s *Set) Remove(i lang.AnyType)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set is not thread-safe, for concurrent use, make sure to use it with synchronization.
func NewSet ¶
func NewSet() *Set
NewSet returns a managed Set, can only put the values with the same type.
func NewUnmanagedSet ¶
func NewUnmanagedSet() *Set
NewUnmanagedSet returns an unmanaged Set, which can put values with different types.
Click to show internal directories.
Click to hide internal directories.