Documentation
¶
Index ¶
Constants ¶
View Source
const HashSize = 32
Variables ¶
View Source
var ErrInvalidSQLType = errors.New("invalid SQL type")
ErrInvalidSQLType is returned when the type of the data is not supported for SQL database operations.
View Source
var UndefHash = Hash{0}
Functions ¶
Types ¶
type Hash ¶
func FromString ¶
FromString constructs a new hash from a hex-encoded string.
func (Hash) LogString ¶ added in v1.11.0
LogString returns a concise string representation intended for use in logs.
func (Hash) ShortString ¶ added in v0.15.0
ShortString returns a shortened string representation of the hash.
Click to show internal directories.
Click to hide internal directories.