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 }