func test(r *http.Request) error {
ctx := (*r).Context()
ctx = context.WithValue(ctx, "test", 111)
r = (*r).WithContext(ctx)
return nil
}
func (c Controller) Index(w http.ResponseWriter, r *http.Request) {
fmt.Println(r.Context().Value("test"))
_ = test(r)
fmt.Println(r.Context().Value("test"))
_ = test(r)
}
r = (*r).WithContext(ctx)