{
  "id": "go-sync-mutex-table",
  "kind": "table",
  "slug": "go-sync-mutex",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/go-sync-mutex/",
  "title": "Protect shared Go state with sync.Mutex",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "Mutex",
      "source": "Go docs",
      "detail": "Mutual exclusion lock; zero value is an unlocked mutex"
    },
    {
      "name": "Lock",
      "source": "Go docs",
      "detail": "Blocks until the mutex is available"
    },
    {
      "name": "Unlock",
      "source": "Go docs",
      "detail": "Unlocks m; run-time error if m is not locked"
    },
    {
      "name": "TryLock",
      "source": "Go docs",
      "detail": "Tries to lock m and reports whether it succeeded"
    },
    {
      "name": "Locker",
      "source": "Go docs",
      "detail": "Interface with Lock and Unlock methods"
    }
  ],
  "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."
}