Skip to content

Commit

Permalink
Converts the first letter of service name to uppercase
Browse files Browse the repository at this point in the history
fixes #484
  • Loading branch information
thurt committed Jan 15, 2018
1 parent 7542c76 commit 5ff0781
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 @@ -80,6 +80,8 @@ func applyTemplate(p param) (string, error) {
var targetServices []*descriptor.Service
for _, svc := range p.Services {
var methodWithBindingsSeen bool
svcName := strings.Title(*svc.Name)
svc.Name = &svcName
for _, meth := range svc.Methods {
glog.V(2).Infof("Processing %s.%s", svc.GetName(), meth.GetName())
methName := strings.Title(*meth.Name)
Expand Down

0 comments on commit 5ff0781

Please sign in to comment.