示例#1
0
文件: main.go 项目: calaniz/alanisoft
func GetMain(w http.ResponseWriter, r *http.Request) *AppError {
	w.WriteHeader(http.StatusOK)
	w.Write(util.RenderIndex("/main/main.html"))
	return nil
}
示例#2
0
文件: blog.go 项目: calaniz/alanisoft
func GetBlog(w http.ResponseWriter, r *http.Request) *AppError {
	w.WriteHeader(http.StatusOK)
	w.Write(util.RenderIndex("/blog/blog.html"))
	return nil
}