prometheus/vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger/helpers.go

10 lines
146 B
Go
Raw Normal View History

//+build go1.12
package genswagger
import "strings"
func fieldName(k string) string {
return strings.ReplaceAll(strings.Title(k), "-", "_")
}