navleftroot

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TmplName = "tmplNavLeftRoot"
)

Variables

View Source
var (
	//go:embed navleftroot.js
	Js string
	//go:embed navleftroot.css
	Css string
)

Functions

func AsTmpl

func AsTmpl() string

Types

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

Renderer renders left nav HTML to a Writer.

func NewRenderer

func NewRenderer(buff *bytes.Buffer) *Renderer

NewRenderer returns a new Renderer for the given writer.

func (*Renderer) Error

func (v *Renderer) Error() error

func (*Renderer) MaxFileNameLength

func (v *Renderer) MaxFileNameLength() int

func (*Renderer) NumFiles

func (v *Renderer) NumFiles() int

func (*Renderer) NumFolders

func (v *Renderer) NumFolders() int

func (*Renderer) VisitFile

func (v *Renderer) VisitFile(x *loader.MyFile)

VisitFile renders a file nav widget, with ID matching the depth first file ordering.

func (*Renderer) VisitFolder

func (v *Renderer) VisitFolder(x *loader.MyFolder)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL