MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / convertToStructFieldName

Function convertToStructFieldName

model/identity.go:47–53  ·  view source on GitHub ↗

convertToStructFieldName ensures consistent field name format by returning the Go struct field name (typically capitalized) for the given input

(fieldName string)

Source from the content-addressed store, hash-verified

45// convertToStructFieldName ensures consistent field name format by returning
46// the Go struct field name (typically capitalized) for the given input
47func 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
55func (i *Identity) IsFieldTokenized(fieldName string) bool {
56 if i.MetaData == nil {

Callers 3

IsFieldTokenizedMethod · 0.70
MarkFieldAsTokenizedMethod · 0.70

Calls

no outgoing calls

Tested by 1