package
Version:
v0.2.1-rc2
Opens a new window with list of versions in this module.
Published: Feb 19, 2020
License: Apache-2.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
¶
type ErrConflict struct {
Port uint
}
ErrConflict is return when trying to add a port
in the set that is already present
UintSet is a set containing uint
NewUint creates a new set for uint
Add tries to add port to the set. If port is already
present errPortConflict is return otherwise nil is returned
List returns a list of uint present in the set
Remove removes a port from the set
removes never fails cause if the port is not in the set
remove is a nop-op
Source Files
¶
Click to show internal directories.
Click to hide internal directories.