func init() { userRepo = &UserRepository{ users: make([]User, 0), } userRepo.Add(User{ Name: "Sheldon", Location: "us", Gender: "male", Skills: []string{"Go", "Java"}, }) // demo: how to add template func wk.TemplateFuncs["location"] = getLocations wk.TemplateFuncs["skill"] = getSkills wk.TemplateFuncs["locationtext"] = locationText boot.Boot(RegisterUserRoute) }
func init() { boot.Boot(RegisterSessionRoute) }
func init() { boot.Boot(RegisterBigPipeRoute) }
func init() { boot.Boot(RegisterQrRoute) }
func init() { boot.Boot(RegisterDocRoute) }
func init() { boot.Boot(RegisterConfigRoute) }
func init() { boot.Boot(RegisterDataRoute) }
func init() { boot.Boot(RegisterBasicRoute) }
func init() { boot.Boot(RegisterCompress) }
func init() { boot.Boot(RegisterFileRoute) }
func init() { boot.Boot(RegisterEventTrace) }
func init() { boot.Boot(RegisterHomeRoute) }