Documentation ¶ Index ¶ func Must[T any](t T, err error) T type Hasher Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Must ¶ func Must[T any](t T, err error) T Types ¶ type Hasher ¶ type Hasher[T any] func(io.Reader) (T, error) Hasher defines functions that can be used to produce hash This functions works with io.Reader for maximum versatility, for simpler cases like working with strings or bytes utility package hash can be used. Example: hash.String(sha256.SHA256, "Hello, world") Source Files ¶ View all Source files hasher.gomust.go Directories ¶ Show internal Expand all Path Synopsis crc32 hash sha256 Click to show internal directories. Click to hide internal directories.