embed-fetcher-plugin

command
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

embed-fetcher-plugin shows a host application embedding scriptling with fetcher plugins enabled: scripts and libraries are pulled from a plugin over the plugin protocol, on demand, with nothing on the local filesystem.

This is the same wiring the CLI performs, in the order it matters:

  1. build a plugin.Manager and load the plugins;
  2. bridge the manager's fetchers into a pack scheme registry;
  3. open the packages the plugins declare (or any scheme:// source);
  4. put those bundles behind the interpreter's library loader;
  5. fetch and run a script that lives in the plugin.

Run it with:

go run ./examples/embed-fetcher-plugin

It builds the fetcher-go example plugin into a temp dir and drives it, so it needs no external service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL