Documentation ¶
Index ¶
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 是一个结构体,包含一个 map,用于存储集合的元素。 Set is a struct, containing a map, used to store the elements of the set.
func (*Set) Add ¶
func (s *Set) Add(item interface{})
Add 方法将一个元素添加到 Set 中。 The Add method adds an element to the Set.
func (*Set) Cleanup ¶ added in v2.2.1
func (s *Set) Cleanup()
Cleanup 方法清空 Set。 The Cleanup method clears the Set.
func (*Set) Contains ¶
Contains 方法检查一个元素是否在 Set 中。 The Contains method checks whether an element is in the Set.
Click to show internal directories.
Click to hide internal directories.