package atomic
import "github.com/streadway/handy/atomic"
Package atomic implements atomic accessors for primitives
Index ¶
Types ¶
type Int ¶
type Int int64
Int implements atomic 64bit int operations
func (*Int) Add ¶
Add increments i by n
func (*Int) Get ¶
Get returns the value without races.
func (*Int) String ¶
String returns the base 10 formatted value.
Source Files ¶
- Version
- v0.0.0-20200128134331-0f66f006fb2e (latest)
- Published
- Jan 28, 2020
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 2 months ago –
Tools for package owners.