Пример #1
0
func GetMain(w http.ResponseWriter, r *http.Request) *AppError {
	w.WriteHeader(http.StatusOK)
	w.Write(util.RenderIndex("/main/main.html"))
	return nil
}
Пример #2
0
func GetBlog(w http.ResponseWriter, r *http.Request) *AppError {
	w.WriteHeader(http.StatusOK)
	w.Write(util.RenderIndex("/blog/blog.html"))
	return nil
}