Versions in this module Expand all Collapse all v0 v0.8.0 Nov 20, 2022 Changes in this version type ID + func (id *ID) GobDecode(buf []byte) error + func (id *ID) GobEncode() ([]byte, error) v0.7.0 Aug 25, 2017 Changes in this version + type Digest []byte + func NewDigest(b []byte) Digest + func (d Digest) ID() *ID + func (d Digest) Read(p []byte) (n int, err error) + func (d Digest) Write(p []byte) (n int, err error) + func (l Digest) Sum(r Digest) Digest + type DigestSlice []Digest + func (ds *DigestSlice) Digest() Digest + func (ds *DigestSlice) Index(x Digest) int + func (ds *DigestSlice) Insert(d Digest) int + func (ds *DigestSlice) Read(p []byte) (int, error) + func (s *DigestSlice) Write(p []byte) (int, error) + type Encoder struct + func NewEncoder() *Encoder + func (e *Encoder) Digest() Digest + func (e *Encoder) ID() *ID + func (e *Encoder) Reset() + func (e *Encoder) Write(b []byte) (int, error) + type ID big.Int + var MAX_ID *ID + var NIL_ID *ID + var VOID_ID *ID + func Identify(src io.Reader) *ID + func Parse(src string) (*ID, error) + func (id *ID) Digest() Digest + func (id *ID) Less(idArg *ID) bool + func (id *ID) MarshalBinary() (data []byte, err error) + func (id *ID) MarshalJSON() ([]byte, error) + func (id *ID) MarshalText() (text []byte, err error) + func (id *ID) String() (s string) + func (id *ID) UnmarshalBinary(data []byte) error + func (id *ID) UnmarshalJSON(data []byte) error + func (id *ID) UnmarshalText(text []byte) error + func (l *ID) Cmp(r *ID) int + type Identifiable interface + ID func() *ID + type Node struct + func (n Node) Label() Digest + func (n Node) Left() Digest + func (n Node) Parent() Node + func (n Node) Right() Digest + type ReadCloser interface + type Reader interface + type Slice []*ID + func (s *Slice) Insert(id *ID) + func (s *Slice) String() string + func (s Slice) ID() *ID + func (s Slice) Index(id *ID) int + type Tree struct + func NewTree(s DigestSlice) *Tree + func (t *Tree) At(row, index int) Digest + func (t *Tree) Compute() Digest + func (t *Tree) Count() int + func (t *Tree) Digest() Digest + func (t *Tree) ID() *ID + func (t *Tree) IDcount() int + func (t *Tree) Length() int + func (t *Tree) MarshalBinary() (data []byte, err error) + func (t *Tree) MarshalText() (text []byte, err error) + func (t *Tree) Node(i uint64) Node + func (t *Tree) NodeCount() int + func (t *Tree) Row(i int) []Digest + func (t *Tree) RowCount() int + func (t *Tree) Size() int + func (t *Tree) String() string + func (t *Tree) UnmarshalBinary(data []byte) error + type WriteCloser interface + type Writer interface