tpl: Misco GoDoc improvements

This commit is contained in:
Bjørn Erik Pedersen
2022-11-29 11:38:21 +01:00
parent dc44bca963
commit 7d5e3ab8a8
3 changed files with 20 additions and 3 deletions

View File

@@ -59,11 +59,12 @@ func (d goatDiagram) Height() int {
return d.d.Height
}
type Diagrams struct {
// Namespace provides template functions for the diagrams namespace.
type Namespace struct {
d *deps.Deps
}
func (d *Diagrams) Goat(v any) SVGDiagram {
func (d *Namespace) Goat(v any) SVGDiagram {
var r io.Reader
switch vv := v.(type) {