Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ByteLen is the length of a Hash in bytes. It should be the same as noms's hash.ByteLen. ByteLen = 20 // StringLen is the number of characters a Hash takes when turned into a string StringLen = 32 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hash ¶
A Hash represents a hash with ByteLen bytes
func (Hash) Format ¶
Format implements fmt.Formatter, forcing the byte slice to be formatted as is, without going through the stringer interface used for logging.
func (Hash) MarshalText ¶
MarshalText returns the string representation of h. Same as h.String()
func (*Hash) UnmarshalText ¶
UnmarshalText parses a string hash
Click to show internal directories.
Click to hide internal directories.