mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +02:00
tpl: Misco GoDoc improvements
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user