예제 #1
0
func redir(session *http.Session) {
	redir := "/"

	if k := session.Request.Referer(); len(k) > 0 {
		redir = k
	}

	session.Redirect(&url.URL{Path: redir})
}
예제 #2
0
파일: main.go 프로젝트: sogko/gotcha
func example3(session *http.Session) {
	session.Redirect(&url.URL{Path: "/foo"})
}