You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
297 B

2 years ago
package loader
import (
"context"
"fmt"
"gitoa.ru/go-4devs/templating/render"
)
var _empty = empty{}
type empty struct{}
func (empty) Load(context.Context, render.Reference) (Source, error) {
return Source{}, fmt.Errorf("empty: %w", ErrNotFound)
}
func Empty() Loader {
return _empty
}