kujtimiihoxha / gk

Go-Kit Genetator
Apache License 2.0
151 stars 28 forks source link

the handler.go generated not correct #12

Open lyszhang opened 4 years ago

lyszhang commented 4 years ago

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