{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://iinventedlight.com/library/artifacts/go-select-statement.schema.json",
  "title": "go-select-statement (summary schema)",
  "description": "Coverage draft, 23 November 2026, America/Los_Angeles. Not published. Draft note; iil_id is null until live.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "slug": {
      "const": "go-select-statement"
    },
    "iil_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "note_url": {
      "type": "string",
      "format": "uri",
      "description": "https://iinventedlight.com/library/notes/go-select-statement/"
    },
    "claim": {
      "type": "string",
      "description": "select chooses which of a set of possible send or receive operations will proceed."
    },
    "license": {
      "type": "string"
    },
    "source_license": {
      "type": "string"
    },
    "as_of": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "claims": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "claim": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "claim"
        ]
      }
    },
    "related_slugs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "related_artifacts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "slug",
    "iil_id",
    "claim",
    "license",
    "as_of"
  ],
  "examples": [
    {
      "slug": "go-select-statement",
      "iil_id": null,
      "note_url": "https://iinventedlight.com/library/notes/go-select-statement/",
      "claim": "select chooses which of a set of possible send or receive operations will proceed.",
      "claims": [
        {
          "id": "C1",
          "claim": "select chooses which of a set of possible send or receive operations will proceed.",
          "source_id": "S2"
        },
        {
          "id": "C2",
          "claim": "There can be at most one default case.",
          "source_id": "S2"
        },
        {
          "id": "C3",
          "claim": "With no default case, select blocks until a communication can proceed.",
          "source_id": "S2"
        },
        {
          "id": "C4",
          "claim": "Effective Go uses select with a default case to allocate a buffer when a free list is empty.",
          "source_id": "S1"
        }
      ],
      "license": "CC-BY-4.0",
      "source_license": "CC-BY-4.0 (Go project); CC-BY-4.0 (Go project); prose restates cited source lines in own words",
      "as_of": "2026-11-23",
      "status": "draft-20261123-cov-02",
      "related_slugs": [
        "go-goroutines",
        "go-channels",
        "go-testing"
      ]
    }
  ]
}
