helpers_go111_old.go 168 B

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