Documentation ¶
Index ¶
- Constants
- Variables
- func AsTmpl() string
- type Renderer
- func (v *Renderer) Error() error
- func (v *Renderer) MaxFileNameLength() int
- func (v *Renderer) NumFiles() int
- func (v *Renderer) NumFolders() int
- func (v *Renderer) VisitFile(x *loader.MyFile)
- func (v *Renderer) VisitFolder(x *loader.MyFolder)
- func (v *Renderer) VisitTopFolder(x *loader.MyTopFolder)
Constants ¶
View Source
const (
TmplName = "tmplNavLeftRoot"
)
Variables ¶
View Source
var ( //go:embed navleftroot.js Js string //go:embed navleftroot.css Css string )
Functions ¶
Types ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer renders left nav HTML to a Writer.
func NewRenderer ¶
NewRenderer returns a new Renderer for the given writer.
func (*Renderer) MaxFileNameLength ¶
func (*Renderer) NumFolders ¶
func (*Renderer) VisitFile ¶
VisitFile renders a file nav widget, with ID matching the depth first file ordering.
func (*Renderer) VisitFolder ¶
VisitFolder renders a folder nav widget, with ID matching the depth first folder ordering.
func (*Renderer) VisitTopFolder ¶
func (v *Renderer) VisitTopFolder(x *loader.MyTopFolder)
VisitTopFolder renders the top-most folder.
Click to show internal directories.
Click to hide internal directories.