MCPcopy
hub / github.com/golang/tools / Elem

Interface Elem

present/parse.go:163–165  ·  view source on GitHub ↗

Elem defines the interface for a present element. That is, something that can provide the name of the template used to render the element.

Source from the content-addressed store, hash-verified

161// Elem defines the interface for a present element. That is, something that
162// can provide the name of the template used to render the element.
163type Elem interface {
164 TemplateName() string
165}
166
167// renderElem implements the elem template function, used to render
168// sub-templates.

Callers 1

renderElemFunction · 0.65

Implementers 10

Iframepresent/iframe.go
HTMLpresent/html.go
Imagepresent/image.go
Codepresent/code.go
Captionpresent/caption.go
Linkpresent/link.go
Sectionpresent/parse.go
Textpresent/parse.go
Listpresent/parse.go
Videopresent/video.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…