Páginas · togo
Plugins
togo is a microkernel: every capability is a plugin. The kernel boots plugins
in ascending Priority (0–100) and discovers them automatically.
Install
bash
togo install owner/repo reads the plugin's togo.plugin.yaml, runs go get,
regenerates internal/plugins/plugins.gen.go (blank imports → auto-discovery),
records it in togo.yaml, and tidies modules. On the next togo serve the kernel
registers and boots it.
Authoring a plugin
A plugin implements togo.Plugin and registers itself in init():
go
Add a togo.plugin.yaml manifest (name, priority, backend package, env, migrations).
Start from plugin-template.
Kernel services
Plugins receive *togo.Kernel: Config, Router (chi), Hooks (priority event
bus), and DB(ctx) (pgx pool from DATABASE_URL).