示例#1
0
func setCurrentRoute(r *http.Request, val interface{}) {
	if val != nil {
		context.Set(r, routeKey, val)
	}
}
示例#2
0
func setVars(r *http.Request, val interface{}) {
	if val != nil {
		context.Set(r, varsKey, val)
	}
}