mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-18 19:44:06 -08:00
86ff4a1717
Pinned github.com/googleapis/gnostic as they introduced braking change. Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
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), "-", "_")
|
|
}
|