Documentation ¶ Index ¶ Constants func Equal(a, b Reference) bool func Hex(ref Reference) string type Reference func Compute(data []byte) Reference func FromHex(s string) (Reference, error) func Hash(data []byte) Reference Constants ¶ View Source const ReferenceSize = 32 Variables ¶ This section is empty. Functions ¶ func Equal ¶ func Equal(a, b Reference) bool func Hex ¶ func Hex(ref Reference) string Types ¶ type Reference ¶ type Reference [ReferenceSize]byte func Compute ¶ func Compute(data []byte) Reference func FromHex ¶ func FromHex(s string) (Reference, error) func Hash ¶ func Hash(data []byte) Reference Source Files ¶ View all Source files reference.go Click to show internal directories. Click to hide internal directories.