Documentation ¶
Index ¶
- func NewManager(mgr driver.Manager, pa PathAliases) driver.Manager
- type PathAliases
- func (p *PathAliases) Add(alias, absPath string) *PathAliases
- func (p *PathAliases) AddAllSubdir(absPath string) error
- func (p *PathAliases) Aliases() []string
- func (p *PathAliases) Parse(withAliasTagPath string) string
- func (p *PathAliases) ParseOk(withAliasTagPath string) (string, bool)
- func (p *PathAliases) ParsePrefix(withAliasPrefixPath string) string
- func (p *PathAliases) ParsePrefixOk(withAliasPrefixPath string) (string, bool)
- func (p *PathAliases) Range(fn func(string, string) error) (err error)
- func (p *PathAliases) Restore(fullpath string) string
- func (p *PathAliases) RestoreOk(fullpath string) (string, bool)
- func (p *PathAliases) RestorePrefix(fullpath string) string
- func (p *PathAliases) RestorePrefixOk(fullpath string) (string, bool)
- func (p *PathAliases) TmplDirs() []string
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) ParsePrefix ¶
func (p *PathAliases) ParsePrefix(withAliasPrefixPath string) string
func (*PathAliases) ParsePrefixOk ¶
func (p *PathAliases) ParsePrefixOk(withAliasPrefixPath string) (string, bool)
func (*PathAliases) Restore ¶
func (p *PathAliases) Restore(fullpath string) string
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
Click to show internal directories.
Click to hide internal directories.