Documentation
¶
Overview ¶
Package syncset provides a simple, mutex-protected set for strings.
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 is a concurrency-safe set of strings.
func (*Set) AddIfAbsent ¶
AddIfAbsent adds str to the set if it is not already present, and reports whether it was added.
Click to show internal directories.
Click to hide internal directories.