{
  "id": "go-build-tags-table",
  "kind": "table",
  "slug": "go-build-tags",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/go-build-tags/",
  "title": "The go command prefers //go:build lines over // +build lines. (cheat table)",
  "columns": [
    "topic",
    "fact",
    "source_id"
  ],
  "rows": [
    {
      "topic": "C1",
      "fact": "The go command prefers //go:build lines over // +build lines.",
      "source_id": "S1"
    },
    {
      "topic": "C2",
      "fact": "The new syntax uses boolean expressions, just like Go.",
      "source_id": "S1"
    },
    {
      "topic": "C3",
      "fact": "A build constraint is a line comment that begins //go:build.",
      "source_id": "S2"
    },
    {
      "topic": "C4",
      "fact": "In Go files the constraint must appear before the package clause.",
      "source_id": "S2"
    }
  ],
  "related_slugs": [
    "go-cgo"
  ],
  "license": "CC-BY-4.0",
  "as_of": "2026-11-23",
  "status": "draft"
}
