Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Index map[string]int
Functions ¶
func InitCategories ¶
func InitCategories()
InitCategories init the categories and index variables. Exported for tests
Types ¶
type Categories ¶
type Categories []Category
Cateogories is a struct defining an array of categories
func All ¶
func All() Categories
All : function to get all categories depending on the actual website from config/categories.go
func GetSelect ¶
func GetSelect(keepParent bool, keepChild bool) Categories
GetSelect : Format categories in map ordered alphabetically
func (Categories) Exists ¶
func (cats Categories) Exists(id string) bool
Exists : Check if a category exist in config
Click to show internal directories.
Click to hide internal directories.