mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-11 16:14:05 -08:00
ef63d8d16d
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
10 lines
146 B
Go
10 lines
146 B
Go
//+build go1.12
|
|
|
|
package genswagger
|
|
|
|
import "strings"
|
|
|
|
func fieldName(k string) string {
|
|
return strings.ReplaceAll(strings.Title(k), "-", "_")
|
|
}
|