{
  "id": "go-atomic-table",
  "kind": "table",
  "slug": "go-atomic",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/go-atomic/",
  "title": "Use Go sync/atomic for low-level atomic memory operations",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "SwapT",
      "source": "Go docs",
      "detail": "Store a new value and return the previous *addr value"
    },
    {
      "name": "CompareAndSwapT",
      "source": "Go docs",
      "detail": "compare-and-swap operation implemented by the CompareAndSwapT functions"
    },
    {
      "name": "AddT",
      "source": "Go docs",
      "detail": "Add delta to *addr and return *addr"
    },
    {
      "name": "LoadT",
      "source": "Go docs",
      "detail": "Atomic equivalent of return *addr"
    },
    {
      "name": "StoreT",
      "source": "Go docs",
      "detail": "Atomic equivalent of *addr = val"
    }
  ],
  "related_slugs": [
    "go-goroutines-channels",
    "go-context",
    "go-defer-panic-recover"
  ],
  "license": "CC-BY-4.0",
  "source_license": "BSD-3-Clause (Go docs); BSD-3-Clause (Go source); prose restates cited source lines in own words",
  "as_of": "2026-11-19",
  "status": "deep-draft-20261119",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}