cityuni-webserver/pageHandler/pages.go
Captain ALM ef3c387f39
All checks were successful
continuous-integration/drone/push Build is passing
Switch over from test to go-info.
Improve Makefile and add new compilation fields.
2022-07-16 00:53:50 +01:00

17 lines
476 B
Go

package pageHandler
var providers map[string]PageProvider
func GetProviders(cacheTemplates bool, dataStorage string, pageHandler *PageHandler) map[string]PageProvider {
if providers == nil {
providers = make(map[string]PageProvider)
if pageHandler != nil {
infoPage := newGoInfoPage(pageHandler, dataStorage, cacheTemplates)
providers[infoPage.GetPath()] = infoPage //Go Information Page
}
//Add the providers in the pages sub package
}
return providers
}