func main()

in sample/plugin-hello/main.go [26:39]


func main() {
	reg := k6ctl.NewConfigProviderRegistry()
	reg.Register(
		k6ctl.ProvideConfig(
			"message",
			k6ctl.LoadConfigForStruct[params],
			func(ctx context.Context, target k6ctl.Target, p params) (string, error) {
				return fmt.Sprintf("hello %s", p.Message), nil
			},
		),
	)

	k6ctl.ServeConfigRegistryPlugin(reg)
}