MCPcopy Index your code
hub / github.com/expr-lang/expr / fieldName

Function fieldName

checker/nature/utils.go:9–18  ·  view source on GitHub ↗
(fieldName string, tag reflect.StructTag)

Source from the content-addressed store, hash-verified

7)
8
9func fieldName(fieldName string, tag reflect.StructTag) (string, bool) {
10 switch taggedName := tag.Get("expr"); taggedName {
11 case "-":
12 return "", false
13 case "":
14 return fieldName, true
15 default:
16 return taggedName, true
17 }
18}
19
20type structData struct {
21 rType reflect.Type

Callers 1

structFieldMethod · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…