//
pkg.gl
Category
github.com/packtpublishing/go-cookbook
Chapter09
atomic
package
0.0.0-20230130100827-6c64ebff31b2
Repository:
https://github.com/packtpublishing/go-cookbook.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
0
Files
49 SLOC
#
Packages
example
No description provided by the author
#
Functions
NewOrdinal
NewOrdinal returns ordinal with once setup.
NewSafeMap
NewSafeMap creates a SafeMap.
#
Structs
Ordinal
Ordinal holds a global a value and can only be initialized once.
SafeMap
SafeMap uses a mutex to allow getting and setting in a thread-safe way.