feat(blogo,plugins,group): rename list plugin to plugin group

This commit is contained in:
Guz
2025-01-14 16:09:46 -03:00
parent 34249f6ab3
commit 26a587a014
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ func New(opts ...Options) Blogo {
func (b *blogo) Use(p Plugin) {
log := b.log.With(slog.String("plugin", p.Name()))
if p, ok := p.(ListPlugin); ok {
if p, ok := p.(PluginGroup); ok {
log.Debug("Added plugin", slog.String("type", "PluginList"))
for _, p := range p.Plugins() {
b.Use(p)

View File

@@ -24,7 +24,7 @@ type Plugin interface {
Name() string
}
type ListPlugin interface {
type PluginGroup interface {
Plugin
Plugins() []Plugin
}