MCPcopy Index your code
hub / github.com/cli/cli / fieldByName

Function fieldByName

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

Source from the content-addressed store, hash-verified

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

Callers 3

StructExportDataFunction · 0.70
ExportDataMethod · 0.50
ExportDataMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected