Add configurable interface

This commit is contained in:
Sasha Koshka 2024-12-09 18:22:48 -05:00
parent 380a5b9223
commit adcb195f78

View File

@ -17,3 +17,10 @@ type FuncProviderFor interface {
// may return nil, in which case its result is simply not considered.
FuncMapFor (*Document) template.FuncMap
}
// Configurable is an object that can be configured according to metadata.
type Configurable interface {
// Configure uses config to configure the object. It must not modify
// config. Keys are namespaced with a '.' and are written in kebab case.
Configure (config Meta) error
}