Documentation ¶
Index ¶
- func Activate(items []*NavigationItem, r *http.Request)
- func Flat(items []*NavigationItem, r *http.Request) (f map[string]*NavigationItem)
- type NavigationItem
- func ForTemplate(templateName string, navs []*NavigationItem) (found *NavigationItem)
- func ForTemplateList(templateName string, navs []*NavigationItem) (found []*NavigationItem)
- func Level(items []*NavigationItem, r *http.Request) (nav map[string]*NavigationItem, active *NavigationItem)
- func New(content []byte) []*NavigationItem
- func NewNav(content []byte) ([]*NavigationItem, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Activate ¶ added in v1.0.0
func Activate(items []*NavigationItem, r *http.Request)
func Flat ¶
func Flat(items []*NavigationItem, r *http.Request) (f map[string]*NavigationItem)
Types ¶
type NavigationItem ¶
type NavigationItem struct {}
func ForTemplate ¶
func ForTemplate(templateName string, navs []*NavigationItem) (found *NavigationItem)
func ForTemplateList ¶ added in v1.0.0
func ForTemplateList(templateName string, navs []*NavigationItem) (found []*NavigationItem)
func Level ¶
func Level(items []*NavigationItem, r *http.Request) (nav map[string]*NavigationItem, active *NavigationItem)
func New ¶
func New(content []byte) []*NavigationItem
func NewNav ¶
func NewNav(content []byte) ([]*NavigationItem, error)
func (*NavigationItem) ClassName ¶
func (n *NavigationItem) ClassName() string
func (*NavigationItem) InUrlPath ¶
func (n *NavigationItem) InUrlPath(url string) bool
func (*NavigationItem) Matches ¶
func (n *NavigationItem) Matches(url string) bool
Click to show internal directories.
Click to hide internal directories.