Add configurable interface
This commit is contained in:
parent
380a5b9223
commit
adcb195f78
@ -17,3 +17,10 @@ type FuncProviderFor interface {
|
|||||||
// may return nil, in which case its result is simply not considered.
|
// may return nil, in which case its result is simply not considered.
|
||||||
FuncMapFor (*Document) template.FuncMap
|
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
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user