예제 #1
0
파일: react.go 프로젝트: sixbyter/wwchat
func (react *ReactController) AddonsAnimation(rw http.ResponseWriter, req *http.Request) {
	b := framework.ViewByte("/react/animation.html")
	rw.Write(b)
}
예제 #2
0
파일: react.go 프로젝트: sixbyter/wwchat
func (react *ReactController) AmazeUi(rw http.ResponseWriter, req *http.Request) {
	b := framework.ViewByte("/react/amaze.html")
	rw.Write(b)
}
예제 #3
0
파일: react.go 프로젝트: sixbyter/wwchat
/**
 * 你好首页
 * @param  {[type]} react *ReactController) Nihao(rw http.ResponseWriter, req *http.Request [description]
 * @return {[type]}       [description]
 */
func (react *ReactController) Nihao(rw http.ResponseWriter, req *http.Request) {
	rw.Header().Add("HI", "写在body前面呀")
	rw.Header().Set("Set-Cookie", "a=2&b=3")
	b := framework.ViewByte("/react/nihao.html")
	rw.Write(b)
}