package
Version:
v0.0.0-...-08a0563
Opens a new window with list of versions in this module.
Published: Dec 30, 2017
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
StringSet is a Set of unique strings.
NewStringSet from a list of strings.
Add a string to this set.
Contains returns true if the given string is in the set.
ContainsAny returns true if any of the given strings are in the set.
Copy this StringSet to a new StringSet.
Remove a string from this set.
ToArray converts this StringSet to a []string.
UUIDSet is a Set of unique UUIDs.
func (us UUIDSet) Add(uuids ...uuid.UUID)
Add a UUID to this set.
Contains returns true if the given UUID is in the set.
ContainsAny returns true if any of the given UUIDs are in the set.
Copy this UUIDSet to a new UUIDSet.
func (us UUIDSet) Remove(id uuid.UUID)
Remove a UUID from this set.
func (us UUIDSet) ToArray() []uuid.UUID
ToArray converts this UUIDSet to a []uuid.UUID.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.