Providers are now required to state their name/package

This commit is contained in:
2024-12-10 12:22:58 -05:00
parent 4a1b78b857
commit ab167234d0
10 changed files with 47 additions and 11 deletions

View File

@@ -6,16 +6,16 @@ import "git.tebibyte.media/sashakoshka/step"
const hiddenPrefix = "."
var _ step.FuncProvider = new(Provider)
var _ step.FuncProviderFor = new(Provider)
// Provider provides MIME functions.
type Provider struct {
}
// FuncMap fulfills the step.FuncProvider interface.
func (this *Provider) FuncMap () template.FuncMap {
return nil
// Package fulfills the step.Provider interface.
func (this *Provider) Package () string {
return "mime"
}
// FuncMapFor fulfills the step.FuncProviderFor interface.