Skip to main content

Go Quick Start

The Go runtime is published as a module. Its newest tag and the deployed generator's selection can differ; see Latest Versions. Use the generated go.mod for the first verification, rather than adding a local replace or upgrading the runtime before the generated example passes.

go version
cargo teaql services
cargo teaql evaluate --input models/
cargo teaql golang-lib-core --input models/ --output generated/golang-lib-core
cargo teaql golang-app-console --input models/ --output generated/golang-app-console

Read the generated application AGENTS.md, then run go test ./... and the executable from the generated workspace. The current service catalog uses golang as the CLI key, not go. For exact Q, E, mutation and field methods, use scoped Assist rather than reading generated library source:

cargo teaql golang-assist-query/school --input models/
cargo teaql golang-assist-query/school.name --input models/
cargo teaql golang-assist-ensure-schema --input models/

Install the generated Runtime Module and explicitly ensure schema through the trusted, context-aware module entry point. Verify root and constant rows on first and repeated startup, then create a child with audit intent, query it with non-empty comment and purpose, evaluate a loaded E path, and test Checker/Fix plus an audited update. Do not substitute a descriptor-array schema call or hand-written SQL seed for this path.

For runtime development, the owning Go example should use local repository source. To claim a published package works, repeat the model in a clean consumer workspace using an exact released version. See Go First Verification.