func hyphenate(s string) string {
	// TODO hyphenate FooHTTPBar as foo-http-bar?
	var buf bytes.Buffer
	var prevLower bool
	for _, r := range s {
		if !unicode.IsUpper(r) {
			prevLower = true
			buf.WriteRune(r)
			continue
		}
		if prevLower {
			buf.WriteRune('-')
		}
		buf.WriteRune(unicode.ToLower(r))
		prevLower = false
	}
	return buf.String()
}
// hyphenate returns the hyphenated version of the given
// field name, as specified in the Client.Meta method.
hyphenate returns the hyphenated version of the given
field name, as specified in the Client.Meta method.
// hyphenate returns the hyphenated version of the given // field name as specified in the Client . Meta method .
func hyphenate(s string) string {
	var buf bytes.Buffer
	var prevLower bool
	for _, r := range s {
		if !unicode.IsUpper(r) {
			prevLower = true
			buf.WriteRune(r)
			continue
		}
		if prevLower {
			buf.WriteRune('-')
		}
		buf.WriteRune(unicode.ToLower(r))
		prevLower = false
	}
	return buf.String()
}
func hyphenate ( s string ) string { var buf bytes . Buffer var prevLower bool for _ , r := range s { if ! unicode . IsUpper ( r ) { prevLower = true buf . WriteRune ( r ) continue } if prevLower { buf . WriteRune ( '-' ) } buf . WriteRune ( unicode . ToLower ( r ) ) prevLower = false } return buf . String ( ) }
hyphenate returns the hyphenated version of the given
field name, as specified in the Client.Meta method.
hyphenate returns the hyphenated version of the given field name as specified in the Client . Meta method .
// TODO hyphenate FooHTTPBar as foo-http-bar?