// Find searches for a child node by 'name' within this hamt
Find searches for a child node by 'name' within this hamt
// Find searches for a child node by ' name ' within this hamt
func (ds *Shard) Find(ctx context.Context, name string) (*ipld.Link, error) {
	hv := newHashBits(name)
	var out *ipld.Link
	err := ds.getValue(ctx, hv, name, func(sv *Shard) error {
		out = sv.val
		return nil
	})
	if err != nil {
		return nil, err
	}
	return out, nil
}
func ( ds * Shard ) Find ( ctx context . Context , name string ) ( * ipld . Link , error ) { hv := newHashBits ( name ) var out * ipld . Link err := ds . getValue ( ctx , hv , name , func ( sv * Shard ) error { out = sv . val return nil } ) if err != nil { return nil , err } return out , nil }
Find searches for a child node by 'name' within this hamt
Find searches for a child node by ' name ' within this hamt