Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Digest ¶
Digest returns a SHA-256 hash of the input object. If the object is a string or byte slice, it hashes the raw data. For other types, it encodes the object as JSON before hashing.
func FirstSet ¶
func FirstSet[T comparable](in ...T) T
FirstSet returns the first non-zero value from the input slice, or the zero value if all are zero.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.