Пример #1
0
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)
}
Пример #2
0
func init() {
	boot.Boot(RegisterSessionRoute)
}
Пример #3
0
func init() {
	boot.Boot(RegisterBigPipeRoute)
}
Пример #4
0
Файл: qr.go Проект: jango2015/wk
func init() {
	boot.Boot(RegisterQrRoute)
}
Пример #5
0
func init() {
	boot.Boot(RegisterDocRoute)
}
Пример #6
0
func init() {
	boot.Boot(RegisterConfigRoute)
}
Пример #7
0
func init() {
	boot.Boot(RegisterDataRoute)
}
Пример #8
0
func init() {
	boot.Boot(RegisterBasicRoute)
}
Пример #9
0
func init() {
	boot.Boot(RegisterCompress)
}
Пример #10
0
func init() {
	boot.Boot(RegisterFileRoute)
}
Пример #11
0
func init() {
	boot.Boot(RegisterEventTrace)
}
Пример #12
0
func init() {
	boot.Boot(RegisterHomeRoute)
}