package
Version:
v0.0.0-...-b631e0d
Opens a new window with list of versions in this module.
Published: Jun 11, 2018
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Ordinal holds a global a value
and can only be initialized once
NewOrdinal returns ordinal with once
setup
GetOrdinal will return the current
ordinal
Increment will increment the current
ordinal
Init sets the ordinal value
can only be done once
SafeMap uses a mutex to allow
getting and setting in a thread-safe way
NewSafeMap creates a SafeMap
Get uses a RW lock and gets the value if it exists,
otherwise an error is returned
Set uses a write lock and sets the value given
a key
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.