예제 #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)
}