package
1.24.4
Repository: https://pkg.go.dev/std
Documentation: pkg.go.dev

# Packages

Package atomic provides low-level atomic memory primitives useful for implementing synchronization algorithms.

# Functions

NewCond returns a new Cond with Locker l.
OnceFunc returns a function that invokes f only once.
OnceValue returns a function that invokes f only once and returns the value returned by f.
OnceValues returns a function that invokes f only once and returns the values returned by f.

# Structs

Cond implements a condition variable, a rendezvous point for goroutines waiting for or announcing the occurrence of an event.
Map is like a Go map[any]any but is safe for concurrent use by multiple goroutines without additional locking or coordination.
A Mutex is a mutual exclusion lock.
Once is an object that will perform exactly one action.
A Pool is a set of temporary objects that may be individually saved and retrieved.
A RWMutex is a reader/writer mutual exclusion lock.
A WaitGroup waits for a collection of goroutines to finish.

# Interfaces

A Locker represents an object that can be locked and unlocked.