示例#1
0
文件: user.go 项目: jango2015/wk
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
文件: session.go 项目: jango2015/wk
func init() {
	boot.Boot(RegisterSessionRoute)
}
示例#3
0
文件: bigpipe.go 项目: jango2015/wk
func init() {
	boot.Boot(RegisterBigPipeRoute)
}
示例#4
0
文件: qr.go 项目: jango2015/wk
func init() {
	boot.Boot(RegisterQrRoute)
}
示例#5
0
文件: document.go 项目: jango2015/wk
func init() {
	boot.Boot(RegisterDocRoute)
}
示例#6
0
文件: config.go 项目: jango2015/wk
func init() {
	boot.Boot(RegisterConfigRoute)
}
示例#7
0
文件: data.go 项目: jango2015/wk
func init() {
	boot.Boot(RegisterDataRoute)
}
示例#8
0
文件: basic.go 项目: jango2015/wk
func init() {
	boot.Boot(RegisterBasicRoute)
}
示例#9
0
文件: compress.go 项目: jango2015/wk
func init() {
	boot.Boot(RegisterCompress)
}
示例#10
0
文件: file.go 项目: jango2015/wk
func init() {
	boot.Boot(RegisterFileRoute)
}
示例#11
0
文件: event.go 项目: jango2015/wk
func init() {
	boot.Boot(RegisterEventTrace)
}
示例#12
0
文件: home.go 项目: jango2015/wk
func init() {
	boot.Boot(RegisterHomeRoute)
}