Documentation ¶
Index ¶
- func Expected[ExpectedT any, ResultT any](value any, concreteCast func(any) (ResultT, error)) (any, error)
- func ExpectedSQL[ExpectedT any, ResultT any](value any, concreteCast func(any) (ResultT, error)) (any, error)
- func Unexpected[ResultT any](value any, concreteCast func(any) (ResultT, error)) (any, error)
- func UnexpectedSQL[ResultT any](value any, concreteCast func(any) (ResultT, error)) (any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Expected ¶
func Expected[ExpectedT any, ResultT any](value any, concreteCast func(any) (ResultT, error)) (any, error)
Expected is a pure wrapper over concrete cast.
func ExpectedSQL ¶
func ExpectedSQL[ExpectedT any, ResultT any](value any, concreteCast func(any) (ResultT, error)) (any, error)
ExpectedSQL automatically extracts values from `database/sql/driver` Valuer.
func Unexpected ¶
Unexpected is a pure wrapper over concrete cast.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.