File: helpers_go111_old.go

package info (click to toggle)
golang-github-grpc-ecosystem-grpc-gateway.v2 2.11.3-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,148 kB
  • sloc: javascript: 352; makefile: 136; sh: 26
file content (9 lines) | stat: -rw-r--r-- 148 bytes parent folder | download
1
2
3
4
5
6
7
8
9
//+build !go1.12

package genopenapi

import "strings"

func fieldName(k string) string {
	return strings.Replace(strings.Title(k), "-", "_", -1)
}