Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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.