Пример #1
0
func init() {

	// create a new application
	zApp := core.NewSimpleApplication()

	// * set up default filter
	appCubeFilter := newAppCubeFilter(zApp)
	initNavFilter := newInitNavFilter(zApp)
	zApp.AddDefaultFilters(appCubeFilter, initNavFilter)

	// * set up admin-filte page
	adminFilter := newAdminFilter(zApp)
	core.AddFilterToWaitresses(adminFilter, adminPages)

	zApp.StartApp(wtsMap)
}
Пример #2
0
// * Third, start in init function
func init() {
	newApp := core.NewSimpleApplication()

	// Now, enjoy your web!
	newApp.StartApp(wtsMap)
}