Captain ALM
ef3c387f39
All checks were successful
continuous-integration/drone/push Build is passing
Improve Makefile and add new compilation fields.
17 lines
476 B
Go
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
|
|
}
|