diff --git a/main.go b/main.go index 08e60ce..ea144d3 100644 --- a/main.go +++ b/main.go @@ -23,14 +23,14 @@ type Node struct { Data NodeData } -func (n Node) writeHTML(w io.Writer) { +func (n *Node) writeIndex(w io.Writer) { tmpl, err := template.New("root").Parse(` {{ define "tree" }} {{ if gt (len .Children) 0 }}