Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAndConvert ¶
func ValidateAndConvert[T Validator, U any]( item T, converter func(T) U, itemType string, ) result.Result[U]
ValidateAndConvert provides a generic validation and conversion pattern Useful when you need to validate and then convert to a different type.
func ValidateAndWrap ¶
ValidateAndWrap provides a generic validation wrapper that returns a Result[T] This eliminates duplicate validation patterns across the codebase.
Types ¶
Click to show internal directories.
Click to hide internal directories.