Versions in this module Expand all Collapse all v0 v0.0.2 Sep 19, 2018 Changes in this version + var GlobalMenu = &Menu + var InitMenuOnce = &Once + func InitMenu(user auth.User) + func SetGlobalMenu(user auth.User) + func Unlock() + type Menu struct + GlobalMenuList []MenuItem + GlobalMenuOption []map[string]string + MaxOrder int64 + func GetGlobalMenu(user auth.User) Menu + func (menu *Menu) GetEditMenuList() []MenuItem + func (menu *Menu) SetActiveClass(path string) + func (menu *Menu) SexMaxOrder(order int64) + type MenuItem struct + Active string + ChildrenList []MenuItem + ID string + Icon string + Name string + Url string + func ConstructMenuTree(menus []map[string]interface{}, parentId int64) []MenuItem + func GetMenuItemById(id string) MenuItem + type Once struct + func (o *Once) Do(f func())