Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToStruct ¶
func JSONToStruct ¶
Types ¶
type Locker ¶
type Locker[T any] struct { // contains filtered or unexported fields }
Locker — обёртка для любого типа с мьютексом (хранит указатель на значение).
func (*Locker[T]) Get ¶
func (l *Locker[T]) Get() T
Get безопасно возвращает копию текущего значения.
func (*Locker[T]) GetPointer ¶
func (l *Locker[T]) GetPointer() *T
GetPointer безопасно возвращает указатель на текущее значение.
type Slice ¶
type Slice[T any] struct { // contains filtered or unexported fields }
func NewSliceWithLength ¶
func (*Slice[T]) AddToIndex ¶
Click to show internal directories.
Click to hide internal directories.