You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: conditional.go
    path of file: ./repos/iris/cache/client/rule
    
    the code of the file until where you have to start completion: package rule

import (
	"github.com/kataras/iris/v12/context"
)

// Conditional is a Rule witch adds a predicate in order to its methods to execute
type con
    
func Conditional(claimPredicate func() bool, validPredicate func() bool) Rule {
	if claimPredicate == nil {
		claimPredicate = emptyConditionalPredicate
	}

	if validPredicate == nil {
		validPredicate = emptyConditionalPredicate
	}

	return &conditionalRule{
		claimPredicate: claimPredicate,
		validPredicate: validPredicate,
	}
}