github.com/grpc-ecosystem/grpc-gateway/v2@v2.19.1/protoc-gen-openapiv2/internal/genopenapi/helpers_go111_old.go (about)

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