From e0e0290dcfbb43bf0406e5fae936c9a10a6a0bc5 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Tue, 1 Nov 2022 16:01:23 +0100 Subject: [PATCH] with allocations --- pkg/register/plugin_register.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/register/plugin_register.go b/pkg/register/plugin_register.go index 875ff02..f615f8a 100644 --- a/pkg/register/plugin_register.go +++ b/pkg/register/plugin_register.go @@ -17,7 +17,9 @@ type PluginRegisterBuilder struct { } func NewPluginRegisterBuilder() *PluginRegisterBuilder { - return &PluginRegisterBuilder{} + return &PluginRegisterBuilder{ + plugins: make(map[string]PluginAPI), + } } func (pr *PluginRegisterBuilder) Add(name, path string) *PluginRegisterBuilder {