(fieldName string, tag reflect.StructTag)
| 7 | ) |
| 8 | |
| 9 | func 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 | |
| 20 | type structData struct { |
| 21 | rType reflect.Type |
no test coverage detected
searching dependent graphs…