Files
orly/pkg/utils/atomic
mleku fd76013c10
Some checks failed
Go / build (push) Has been cancelled
Go / release (push) Has been cancelled
refactor(tests): replace bytes imports with orly.dev/pkg/utils globally
- 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.
2025-08-17 18:04:44 +01:00
..
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:30:34 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00
2025-07-17 13:18:55 +01:00

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.