ntemplate

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: AGPL-3.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManager

func NewManager(mgr driver.Manager, pa PathAliases) driver.Manager

Types

type PathAliases

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

func NewPathAliases

func NewPathAliases() *PathAliases

func (*PathAliases) Add

func (p *PathAliases) Add(alias, absPath string) *PathAliases

func (*PathAliases) AddAllSubdir

func (p *PathAliases) AddAllSubdir(absPath string) error

func (*PathAliases) Aliases

func (p *PathAliases) Aliases() []string

func (*PathAliases) Parse

func (p *PathAliases) Parse(withAliasTagPath string) string

func (*PathAliases) ParseOk

func (p *PathAliases) ParseOk(withAliasTagPath string) (string, bool)

func (*PathAliases) ParsePrefix

func (p *PathAliases) ParsePrefix(withAliasPrefixPath string) string

func (*PathAliases) ParsePrefixOk

func (p *PathAliases) ParsePrefixOk(withAliasPrefixPath string) (string, bool)

func (*PathAliases) Range

func (p *PathAliases) Range(fn func(string, string) error) (err error)

func (*PathAliases) Restore

func (p *PathAliases) Restore(fullpath string) string

func (*PathAliases) RestoreOk

func (p *PathAliases) RestoreOk(fullpath string) (string, bool)

func (*PathAliases) RestorePrefix

func (p *PathAliases) RestorePrefix(fullpath string) string

func (*PathAliases) RestorePrefixOk

func (p *PathAliases) RestorePrefixOk(fullpath string) (string, bool)

func (*PathAliases) TmplDirs

func (p *PathAliases) TmplDirs() []string

Jump to

Keyboard shortcuts

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