Documentation
¶
Overview ¶
Package tinygo extracts a bundled TinyGo toolchain to a local cache directory and compiles BPF Go source with it. The bumble flavor feeds it the embedded release tree (see embed_bumble.go); tests feed it any fs.FS carrying a bin/tinygo entry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Toolchain ¶
type Toolchain struct {
// contains filtered or unexported fields
}
Toolchain is a TinyGo release tree plus the cache directory it is extracted to on first use.
func New ¶
New returns a Toolchain rooted at fsys (the directory containing bin/tinygo) that extracts into cacheDir.
func (*Toolchain) Compile ¶
Compile extracts the toolchain if needed and compiles BPF Go source with it. TINYGOROOT points at the extracted tree so the relocated binary finds its runtime.
Click to show internal directories.
Click to hide internal directories.