Documentation ¶
Overview ¶
Package compile compiles FTL Go module source into a deployable executable.
Index ¶
- func Build(ctx context.Context, projectRootDir, stubsRoot string, ...) (moduleSch optional.Option[*schema.Module], buildErrors []builderrors.Error, ...)
- func ExtractDependencies(config moduleconfig.AbsModuleConfig) ([]string, error)
- func GenerateStubs(ctx context.Context, dir string, moduleSch *schema.Module, ...) error
- func SyncGeneratedStubReferences(ctx context.Context, config moduleconfig.AbsModuleConfig, stubsDir string, ...) error
- type ExternalModuleContext
- type MainWorkContext
- type ModifyFilesTransaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶ added in v0.96.0
func Build(ctx context.Context, projectRootDir, stubsRoot string, config moduleconfig.AbsModuleConfig, sch *schema.Schema, filesTransaction ModifyFilesTransaction, devMode bool) (moduleSch optional.Option[*schema.Module], buildErrors []builderrors.Error, err error)
Build the given module.
func ExtractDependencies ¶ added in v0.386.0
func ExtractDependencies(config moduleconfig.AbsModuleConfig) ([]string, error)
func GenerateStubs ¶ added in v0.386.0
func GenerateStubs(ctx context.Context, dir string, moduleSch *schema.Module, config moduleconfig.AbsModuleConfig, nativeConfig optional.Option[moduleconfig.AbsModuleConfig]) error
func SyncGeneratedStubReferences ¶ added in v0.285.2
func SyncGeneratedStubReferences(ctx context.Context, config moduleconfig.AbsModuleConfig, stubsDir string, stubbedModules []string) error
Types ¶
type ExternalModuleContext ¶ added in v0.155.0
type MainWorkContext ¶ added in v0.277.2
type MainWorkContext struct { GoVersion string }
Click to show internal directories.
Click to hide internal directories.