Exemplo n.º 1
0
Arquivo: user.go Projeto: 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)
}
Exemplo n.º 2
0
func init() {
	boot.Boot(RegisterSessionRoute)
}
Exemplo n.º 3
0
func init() {
	boot.Boot(RegisterBigPipeRoute)
}
Exemplo n.º 4
0
Arquivo: qr.go Projeto: jango2015/wk
func init() {
	boot.Boot(RegisterQrRoute)
}
Exemplo n.º 5
0
func init() {
	boot.Boot(RegisterDocRoute)
}
Exemplo n.º 6
0
func init() {
	boot.Boot(RegisterConfigRoute)
}
Exemplo n.º 7
0
Arquivo: data.go Projeto: jango2015/wk
func init() {
	boot.Boot(RegisterDataRoute)
}
Exemplo n.º 8
0
func init() {
	boot.Boot(RegisterBasicRoute)
}
Exemplo n.º 9
0
func init() {
	boot.Boot(RegisterCompress)
}
Exemplo n.º 10
0
Arquivo: file.go Projeto: jango2015/wk
func init() {
	boot.Boot(RegisterFileRoute)
}
Exemplo n.º 11
0
func init() {
	boot.Boot(RegisterEventTrace)
}
Exemplo n.º 12
0
Arquivo: home.go Projeto: jango2015/wk
func init() {
	boot.Boot(RegisterHomeRoute)
}