Ejemplo n.º 1
0
func (react *ReactController) AddonsAnimation(rw http.ResponseWriter, req *http.Request) {
	b := framework.ViewByte("/react/animation.html")
	rw.Write(b)
}
Ejemplo n.º 2
0
func (react *ReactController) AmazeUi(rw http.ResponseWriter, req *http.Request) {
	b := framework.ViewByte("/react/amaze.html")
	rw.Write(b)
}
Ejemplo n.º 3
0
/**
 * 你好首页
 * @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)
}