refactor(blogo,plugins,empty-sourcer): move plugin name to constant

This commit is contained in:
Guz
2025-01-13 16:29:10 -03:00
parent a2e92a2ba3
commit 93293b7f24

View File

@@ -17,6 +17,8 @@ package blogo
import "io/fs"
const emptySourcerPluginName = "blogo-empty-sourcer"
type emptySourcer struct{}
func NewEmptySourcer() Plugin {
@@ -24,7 +26,7 @@ func NewEmptySourcer() Plugin {
}
func (p *emptySourcer) Name() string {
return "blogo-empty-sourcer"
return emptySourcerPluginName
}
func (p *emptySourcer) Source() (fs.FS, error) {