1
0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-09-20 09:52:57 +00:00
promcertcheck/vendor/github.com/flosch/pongo2/nodes.go
Knut Ahlers ce6a18fbf3
Update vendored libs
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-06-04 11:29:58 +02:00

21 lines
306 B
Go

package pongo2
import (
"bytes"
)
// The root document
type nodeDocument struct {
Nodes []INode
}
func (doc *nodeDocument) Execute(ctx *ExecutionContext, buffer *bytes.Buffer) *Error {
for _, n := range doc.Nodes {
err := n.Execute(ctx, buffer)
if err != nil {
return err
}
}
return nil
}