Documentation
¶
Overview ¶
Package build compiles native Go plugins using the shared process runner.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compile ¶
Compile builds one plugin and returns its executable after atomic replacement. Use CompileAll when requesting multiple declared targets.
func CompileAll ¶
CompileAll builds the selected targets without executing them. All targets and destinations are validated first. On failure it returns completed paths; each completed binary remains available and the failed target's old binary survives.
Types ¶
type Option ¶
type Option func(*settings)
Option configures build execution without changing the package manifest.
func WithAllPlatforms ¶
WithAllPlatforms builds every declared platform with bounded concurrency.
func WithPlatform ¶
WithPlatform selects an explicitly declared OS/architecture[/variant] build target.
func WithRunner ¶
WithRunner selects the subprocess implementation.
func WithStreams ¶
WithStreams connects compiler output to the caller's streams.