MCPcopy Index your code
hub / github.com/devfeel/mapper / GetFieldName

Function GetFieldName

mapper.go:153–155  ·  view source on GitHub ↗

GetFieldName get fieldName with ElemValue and index if config tag string, return tag value

(objElem reflect.Value, index int)

Source from the content-addressed store, hash-verified

151// GetFieldName get fieldName with ElemValue and index
152// if config tag string, return tag value
153func GetFieldName(objElem reflect.Value, index int) string {
154 return standardMapper.GetFieldName(objElem, index)
155}
156
157// MapperMap mapper and set value from map to object
158// support auto register struct

Callers 6

Test_SetEnableMapperTagFunction · 0.85
Test_SetEnableJsonTagFunction · 0.85

Calls 1

GetFieldNameMethod · 0.65

Tested by 6

Test_SetEnableMapperTagFunction · 0.68
Test_SetEnableJsonTagFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…