(refField reflect.Value)
| 765 | } |
| 766 | |
| 767 | func getFieldValue(refField reflect.Value) any { |
| 768 | if refField.IsZero() { |
| 769 | switch refField.Kind() { |
| 770 | case reflect.Struct: |
| 771 | if refField.Type() == timestampType { |
| 772 | return time.Unix(0, 0) |
| 773 | } |
| 774 | case reflect.Pointer: |
| 775 | return reflect.New(refField.Type().Elem()).Interface() |
| 776 | } |
| 777 | } |
| 778 | return refField.Interface() |
| 779 | } |
| 780 | |
| 781 | func simplePkgAlias(pkgPath string) string { |
| 782 | paths := strings.Split(pkgPath, "/") |
no test coverage detected