GetMetadata from an DirEntry If the object has no metadata then metadata will be nil
(ctx context.Context, o DirEntry)
| 67 | // |
| 68 | // If the object has no metadata then metadata will be nil |
| 69 | func GetMetadata(ctx context.Context, o DirEntry) (metadata Metadata, err error) { |
| 70 | do, ok := o.(Metadataer) |
| 71 | if !ok { |
| 72 | return nil, nil |
| 73 | } |
| 74 | return do.Metadata(ctx) |
| 75 | } |
| 76 | |
| 77 | // mapItem descripts the item to be mapped |
| 78 | type mapItem struct { |
searching dependent graphs…