func DefaultStringLookupFunc(ctx context.Context) string {
	val := ctx.Value(LookupPartitionContextKey)
	if val != nil {
		strVal, ok := val.(string)
		if ok {
			return strVal
		}
	}
	return ""
}
DefaultStringLookupFunc implements the default string lookup partition based on single-value matching.
package matchers
import (
	"context"
	"strings"
)
type strategyContextKey string
func (c strategyContextKey) String() string {
	return "go-concurrency-limits|strategy|" + string(c)
}
const StringPredicateContextKey = strategyContextKey("stringPredicate")
func StringPredicateMatcher(matchString string, caseInsensitive bool) func(ctx context.Context) bool {
	return func(ctx context.Context) bool {
		val := ctx.Value(StringPredicateContextKey)
		if val != nil {
			strVal, ok := val.(string)
			if ok {
				if caseInsensitive {
					return strings.ToLower(strVal) == strings.ToLower(matchString)
				}
				return strVal == matchString
			}
		}
		return false
	}
}
const LookupPartitionContextKey = strategyContextKey("stringLookup")