{% import "sort" %} {% import "path" %} {% import "github.com/bouncepaw/mycorrhiza/util" %} {% func TreeHTML() %} {% endfunc %} Subhyphae links are recursive. It may end up looking like that if drawn with pseudographics: ╔══════════════╗ ║Foo ║ The presented hyphae are foo and foo/bar ║╔════════════╗║ ║║Bar ║║ ║╚════════════╝║ ╚══════════════╝ {% func childHTML(c *child) %} {% code sort.Slice(c.children, func(i, j int) bool { return c.children[i].name < c.children[j].name }) %}