Documentation ¶
Overview ¶
Package cast provides save casting functions for converting between types without panicking.
Index ¶
- func Array20[A any](slice []A) ([20]A, error)
- func Array32[A any](slice []A) ([32]A, error)
- func Array65[A any](slice []A) ([65]A, error)
- func Array8[A any](slice []A) ([8]A, error)
- func EthAddress(b []byte) (common.Address, error)
- func Must20[A any](slice []A) [20]A
- func Must32[A any](slice []A) [32]A
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EthAddress ¶
EthAddress casts a byte slice to an Ethereum address.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.