package
1.1.3
Repository: https://github.com/go-spring/spring-base.git
Documentation: pkg.go.dev

# README

atomic

Provides simple wrappers for sync/atomic to enforce atomic access.

Install

go get github.com/go-spring/[email protected] 

Import

import "github.com/go-spring/spring-base/atomic"

Example

var i atomic.Int64
i.Add(1)
i.Store(2)
_ = i.Load()

# Structs

A Bool is an atomic bool value.
A Duration is an atomic time.Duration value.
A Float32 is an atomic float32 value.
A Float64 is an atomic float64 value.
An Int32 is an atomic int32 value.
An Int64 is an atomic int64 value.
A Pointer is an atomic pointer value.
A String is an atomic string value.
A Time is an atomic time.Time value.
An Uint32 is an atomic uint32 value.
An Uint64 is an atomic uint64 value.
An Uintptr is an atomic uintptr value.
A Value provides an atomic load and store of a consistently typed value.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author