commit | df976f2515e274675050de7b3f42545de80594fd | [log] [tgz] |
---|---|---|
author | Prashant Varanasi <prashant@uber.com> | Wed May 01 13:56:49 2019 -0700 |
committer | GitHub <noreply@github.com> | Wed May 01 13:56:49 2019 -0700 |
tree | ae2ae5d5ebe34d2f6c8d4239d6d1f5e84e53136f | |
parent | 5a6ca662548f17725b236433764681f0f028bb38 [diff] |
Run lint on 1.12, remove pre-1.11 versions (#52) Clean up the Makefile to use ./... instead of a packages variable. Golint checks vendor when used with "./..." so use `go list ./...`. This lint check was previously not even running (PKGS was undefined).
Simple wrappers for primitive types to enforce atomic access.
go get -u go.uber.org/atomic
The standard library‘s sync/atomic
is powerful, but it’s easy to forget which variables must be accessed atomically. go.uber.org/atomic
preserves all the functionality of the standard library, but wraps the primitive types to provide a safer, more convenient API.
var atom atomic.Uint32
atom.Store(42)
atom.Sub(2)
atom.CAS(40, 11)
See the documentation for a complete API specification.
Stable.
Released under the MIT License.