...

Source file src/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger/helpers.go

Documentation: github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger

     1  //+build go1.12
     2  
     3  package genswagger
     4  
     5  import "strings"
     6  
     7  func fieldName(k string) string {
     8  	return strings.ReplaceAll(strings.Title(k), "-", "_")
     9  }
    10  

View as plain text