Skip to content

Commit

Permalink
Merge pull request #300 from lipixun/master
Browse files Browse the repository at this point in the history
Convert the first letter of method name to upper
  • Loading branch information
tmc committed Jan 27, 2017
2 parents cfee3c5 + 15949de commit 6863684
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 @@ -82,6 +82,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 6863684

Please sign in to comment.