Xo is experimental. The source is now public on GitHub, or try Xo in your browser.
Menu · Documentation

Docs

Documentation

Xo (pronounced ex-oh) is a small, statically typed language for backends, tools, and web services, designed so AI agents can write, check, cross compile, and debug programs with fast, structured feedback.

  • Why Xo? (FAQ): what Xo is for, how it relates to Go, and what experimental means.
  • Xo and Go: how they relate, where each is the better choice, and measured numbers with sources.
  • Xo and Rust, Xo and TypeScript, Xo and Python: the same comparison against each, with the rows where Xo is slower.
  • Performance: measured speed, memory, compile time and binary size against Go, each figure linked to its results file, with the rows where Xo is behind.
  • Getting started: build the toolchain and run a first program.
  • A tour of Xo: twelve short steps through the language.
  • Dependencies and capabilities: limit what a dependency can do, with ceilings, the effect lock, vouches, and xo audit.
  • Cloud SDKs: community SDKs for AWS, Azure and Google Cloud, checked against their Go SDKs.
  • Diagnostic codes: every error code, with an example and a fix.
  • Roadmap: what is done, in progress, and next on the way to 1.0.
  • Core language specification: the source of truth for syntax and semantics.
  • Standard library: prelude methods and the std packages.
  • Conventions: how to write Xo, each rule marked enforced (by the checker, xo fmt or xo vet) or advisory, with its source.
  • Standard library coverage: which of Go’s standard library packages Xo covers, what is beyond Go, the gaps, and a maturity level for each module with its evidence.

Every page is also available as Markdown for agents: add index.md to its URL, or start from /llms.txt.