mirror of
https://github.com/luxfi/utils.git
synced 2026-07-26 22:49:03 +00:00
Add wrappers package with Packer, Errs, and Closer types for binary serialization and error handling. These are needed by other Lux packages that were previously importing from vm. Add bimap package for bidirectional maps. Update atomic.go to re-export from standalone atomic module.
19 lines
556 B
Go
19 lines
556 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package utils
|
|
|
|
import (
|
|
"github.com/luxfi/atomic"
|
|
)
|
|
|
|
// Atomic is a re-export from the standalone atomic module for backward compatibility.
|
|
// Use github.com/luxfi/atomic directly for new code.
|
|
type Atomic[T any] = atomic.Atomic[T]
|
|
|
|
// NewAtomic creates a new Atomic with the given initial value.
|
|
// Use github.com/luxfi/atomic.NewAtomic directly for new code.
|
|
func NewAtomic[T any](value T) *Atomic[T] {
|
|
return atomic.NewAtomic(value)
|
|
}
|