- pkg/crypto/ec/ecdsa/signature_test.go - Removed `bytes`; added `orly.dev/pkg/utils`. - pkg/encoders/filter/filter_test.go - Removed `bytes`; added `orly.dev/pkg/utils`. - pkg/database/query-for-kinds-authors-tags_test.go - Added `orly.dev/pkg/utils`. - Changed `idTsPk` type from `[]store.IdPkTs` to `[]*store.IdPkTs`. - pkg/version/version - Bumped version from `v0.8.0` to `v0.8.1`. - pkg/database/fetch-event-by-serial_test.go - Added `orly.dev/pkg/utils`. - pkg/encoders/filters/filters_test.go - Removed `bytes`; added `orly.dev/pkg/utils`. - pkg/database/query-for-kinds_test.go - Added `orly.dev/pkg/utils`. - Changed `idTsPk` type from `[]store.IdPkTs` to `[]*store.IdPkTs`. - pkg/database/get-serials-by-range_test.go - Added `orly.dev/pkg/utils`. - pkg/crypto/ec/base58/base58_test.go - Removed `bytes`; added `orly.dev/pkg/utils`. - pkg/database/query-events-multiple-param-replaceable_test.go - Removed `bytes`; added `orly.dev/pkg/utils`. ... and additional test files updated to address similar import changes or type adjustments.
atomic
Simple wrappers for primitive types to enforce atomic access.
Installation
$ go get -u github.com/mleku/nodl/pkg/atomic@latest
Usage
The standard library's sync/atomic is powerful, but it's easy to forget which
variables must be accessed atomically. github.com/mleku/nodl/pkg/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.CompareAndSwap(40, 11)
See the [documentation][doc] for a complete API specification.
Development Status
Stable.
Released under the MIT License.