• Eric Myhre's avatar
    Node traversal(->lookup) method renames. · 2e3868c1
    Eric Myhre authored
    Most important things first!  To follow this refactor:
    
    ```
    sed s/TraverseField/LookupString/g
    sed s/TraverseIndex/LookupIndex/g
    ```
    
    It is *literally* a sed-refactor in complexity.
    
    ---
    
    Now, details.
    
    This has been pending for a while, and there is some discussion in
    https://github.com/ipld/go-ipld-prime/issues/22 .
    
    In short, "Traversal" seemed like a mouthful;
    "Field" was always a misnomer here;
    and we've discovered several other methods that we *should* have
    in the area as well, which necessitated a thought about placement.
    
    In this commit, only the renames are applied, but you can also see
    the outlines of two new methods in the Node interface, as comments.
    These will be added in future commits.
    Signed-off-by: default avatarEric Myhre <hash@exultant.us>
    2e3868c1
node.go 9.12 KB