package
0.0.0-20241012201716-0e68a08c836f
Repository: https://github.com/tartale/go.git
Documentation: pkg.go.dev

# Functions

Cast works similarly to the CastTo function, except that the caller provides a pointer to destination variable, instead of getting it through a return value.
CastTo takes a value of any type and attempts several methods to cast it to type T in an expected way, using reflection if necessary.
MustCast is a convenience function that wraps Cast, but panics if an error occurs.
MustCastTo is a convenience function that wraps CastTo, but panics if an error occurs.

# Variables

ErrNotCasted is returned when a given value is unable to be cast to the desired type.