Skip to content

Commit

Permalink
Convert the first letter of method name to upper
Browse files Browse the repository at this point in the history
  • Loading branch information
lipixun committed Jan 15, 2017
1 parent a51e1d5 commit 15949de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions protoc-gen-grpc-gateway/gengateway/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ func applyTemplate(p param) (string, error) {
var methodWithBindingsSeen bool
for _, meth := range svc.Methods {
glog.V(2).Infof("Processing %s.%s", svc.GetName(), meth.GetName())
methName := strings.Title(*meth.Name)
meth.Name = &methName
for _, b := range meth.Bindings {
methodWithBindingsSeen = true
if err := handlerTemplate.Execute(w, binding{Binding: b}); err != nil {
Expand Down

0 comments on commit 15949de

Please sign in to comment.