If I want to use an interface that complies with the signatures of an external package, say *template.Template, should I write all its signatures literally?
type Tempi interface{
AddParseTree(name string, tree *parse.Tree) (*template.Template, error)
Clone() (*template.Template, error)
DefinedTemplates() string
Delims(left, right string) *template.Template
[...]
}
Is there a way to inherit all the signatures with a single statement?
type Tempi interface{
*template.Template
}
Tempi will obviously compile but it can only be used as a type constraint, I want Tempi to inherit all the signatures from *template.Template, is this possible?