GX Framework
Generated Go
The compiler writes Go roots that mirror the authored GX component tree. Those roots are what the package, renderer, and tests execute after the markup has been lowered into ordinary Go.
What the generated file is for
Generated Go keeps the review surface deterministic. It lets a developer inspect the compiled output, compare it in diffs, and use the same package in normal Go code.
bus gx compile notice.gx --output notice_gx_generated.go
Compiled roots stay in the package
The generated roots preserve the original package boundary. That makes the compiled output easy to call from other Go code and easy to pair with rendering or snapshot tests.
See also Source files and Testing.