package
Version:
v0.0.0-...-c3be179
Opens a new window with list of versions in this module.
Published: Mar 29, 2019
License: MPL-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Hash creates a sha256 hash of data
MakeTree recursively creates a tree given a valid path
MultiHash creates a multihash using the sha256 algorithm,
then encodes it in base58
SprintTree is used to recursively print a tree
UnHash retuns the original hash given a base58-encoded multihash
Dir represents a dir node implemented as a tree.Node
Hash returns the hash of combination of prehash and name of the directory
IsDir always returns true
Name returns the name of the directory
PreHash returns the combined hash of all the subnodes of the directory
Sort alphabetically sorts the subnodes of d
Subnodes returns the subdirs and files of the directory
File represents a file as an implementation of tree.Node
MakeFile creates a File given a valid path
Hash returns the hash of combination of content and name of the file
IsDir always retuns false
Name returns the basename of the file
PreHash returns the hash of the content of the file
Subnodes returns a nil pointer
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.