convertToStructFieldName ensures consistent field name format by returning the Go struct field name (typically capitalized) for the given input
(fieldName string)
| 45 | // convertToStructFieldName ensures consistent field name format by returning |
| 46 | // the Go struct field name (typically capitalized) for the given input |
| 47 | func convertToStructFieldName(fieldName string) string { |
| 48 | |
| 49 | if len(fieldName) > 0 { |
| 50 | return strings.ToUpper(fieldName[0:1]) + fieldName[1:] |
| 51 | } |
| 52 | return fieldName |
| 53 | } |
| 54 | |
| 55 | func (i *Identity) IsFieldTokenized(fieldName string) bool { |
| 56 | if i.MetaData == nil { |
no outgoing calls