MCPcopy Create free account
hub / github.com/cli/cli / fieldByName

Function fieldByName

pkg/cmdutil/json_flags.go:325–329  ·  view source on GitHub ↗
(v reflect.Value, field string)

Source from the content-addressed store, hash-verified

323}
324
325func fieldByName(v reflect.Value, field string) reflect.Value {
326 return v.FieldByNameFunc(func(s string) bool {
327 return strings.EqualFold(field, s)
328 })
329}

Callers 3

StructExportDataFunction · 0.70
ExportDataMethod · 0.50
ExportDataMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected