Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the handler.go generated not correct #12

Open
lyszhang opened this issue May 26, 2020 · 0 comments
Open

the handler.go generated not correct #12

lyszhang opened this issue May 26, 2020 · 0 comments

Comments

@lyszhang
Copy link

lyszhang commented May 26, 2020

// 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'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant