You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// DecodeFooRequest is a transport/http.DecodeRequestFunc that decodes a
// JSON-encoded sum request from the HTTP request body. Primarily useful in a server.
func DecodeFooRequest(_ context.Context, r *http.Request) (req interface{}, err error) {
req = endpoints.FooRequest{}
err = json.NewDecoder(r.Body).Decode(&r)
return req, err
}
the '&r' should be '&req'?
The text was updated successfully, but these errors were encountered:
// DecodeFooRequest is a transport/http.DecodeRequestFunc that decodes a
// JSON-encoded sum request from the HTTP request body. Primarily useful in a server.
func DecodeFooRequest(_ context.Context, r *http.Request) (req interface{}, err error) {
req = endpoints.FooRequest{}
err = json.NewDecoder(r.Body).Decode(&r)
return req, err
}
the '&r' should be '&req'?
The text was updated successfully, but these errors were encountered: