github.com/sagernet/sing@v0.4.0-beta.19.0.20240518125136-f67a0988a636/common/atomic/types.go (about) 1 //go:build go1.19 2 3 package atomic 4 5 import "sync/atomic" 6 7 type ( 8 Bool = atomic.Bool 9 Int32 = atomic.Int32 10 Int64 = atomic.Int64 11 Uint32 = atomic.Uint32 12 Uint64 = atomic.Uint64 13 Uintptr = atomic.Uintptr 14 Value = atomic.Value 15 ) 16 17 type Pointer[T any] struct { 18 atomic.Pointer[T] 19 }