Skip to main content

Digest

Digest struct { bytes [DigestSize]byte }

Digest is an immutable, fixed-size SHA-256 digest value.

Methods

NameSignatureDescription
Bytesfunc Bytes() []byteBytes returns a copy of the raw 32-byte digest.
Hexfunc Hex() stringHex returns the canonical lower-case hexadecimal representation.
Stringfunc String() stringString implements fmt.Stringer using the canonical hexadecimal form.
Equalfunc Equal(other Digest) boolEqual compares two digest values.

Source

This page is generated from SDK source metadata and the translation catalog.