with allocations

This commit is contained in:
Kasper Juul Hermansen 2022-11-01 16:01:23 +01:00
parent a693cbad37
commit e0e0290dcf
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -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 {