GO 语言使用注意细节

1. go web代码设置Cookie时,一定先使用http.SetCookie设置Cookie,再调用http/template中的Execute方法生成html内容。若顺序颠倒的话,则会导致设置的Cookie不起作用。

posted @ 2013-04-22 17:59  lingjip  Views(105)  Comments(0)    收藏  举报