(t reflect.Type)
| 864 | } |
| 865 | |
| 866 | func inlined(t reflect.Type) bool { |
| 867 | switch t.Kind() { |
| 868 | case reflect.Ptr: |
| 869 | return true |
| 870 | case reflect.Map: |
| 871 | return true |
| 872 | case reflect.Struct: |
| 873 | return t.NumField() == 1 && inlined(t.Field(0).Type) |
| 874 | default: |
| 875 | return false |
| 876 | } |
| 877 | } |
| 878 | |
| 879 | func isValidTag(s string) bool { |
| 880 | if s == "" { |
no test coverage detected
searching dependent graphs…