package generator import ( "errors" "pgregory.net/rapid" ) func Error() *rapid.Generator[error] { return rapid.Map(rapid.String(), errors.New) }