Documentation
¶
Overview ¶
Package generator pre-parses goql lambdas into a registry so a `-tags prod` binary can run them without reading its own source at runtime.
It is driven from your own module, because resolving a lambda's fields requires the models to be registered — which only happens when the packages declaring them are imported and their init() runs. Add a small program that imports your models and calls Run, then point go:generate at it:
//go:generate go run ./tools/goqlc .
See pkg/tools/goqlc in this repository for a working example.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.