Skip to content

Glossary: Go Beyond the Basics

atomic

Also written: atomic operation, sync/atomic, atomic.Int64

An operation done in one step that no other goroutine can see half finished. `atomic.Int64` is a counter you can update from many goroutines without a mutex, such as counting page views.

Where the book teaches it

Related terms

mutexdata raceint64