Registries

Block types are given to a Config when it is created, from the registries added with WithRegistry: plain Go types and plugins alike. There is one way in and one place things are registered, and nothing loads until it is needed.

See it run

The plugins example builds a local registry with an in-process plugin and an external plugin binary. The configuration only example declares its types on a local registry and keeps no state.