You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# github.com/gengo/grpc-gateway/examples/examplepb
examples/examplepb/echo_service.pb.gw.go:47: protoReq.Id undefined (type SimpleMessage has no field or method Id, but does have ID)
Simply using the exported CamelCase function fixes this:
package utilities
import"github.com/gogo/protobuf/protoc-gen-gogo/generator"// PascalFromSnake converts an identifier in snake_case into PascalCase.funcPascalFromSnake(strstring) string {
returngenerator.CamelCase(str)
}
The text was updated successfully, but these errors were encountered:
For example:
Will fail with
Simply using the exported CamelCase function fixes this:
The text was updated successfully, but these errors were encountered: