func procCleanOpts(opts []CleanOption) cleanOptions {
	// If no options were passed, clean everything
	if len(opts) <= 0 {
		return cleanOptions{
			objects: true,
			errors:  true,
			pending: true,
		}
	}

	result := cleanOptions{}

	// Apply the options
	for _, opt := range opts {
		opt.apply(&result)
	}

	return result
}
// procCleanOpts processes a list of options and returns a constructed
// options structure.
procCleanOpts processes a list of options and returns a constructed
options structure.
// procCleanOpts processes a list of options and returns a constructed // options structure .
func procCleanOpts(opts []CleanOption) cleanOptions {
	if len(opts) <= 0 {
		return cleanOptions{
			objects: true,
			errors:  true,
			pending: true,
		}
	}
	result := cleanOptions{}
	for _, opt := range opts {
		opt.apply(&result)
	}
	return result
}
func procCleanOpts ( opts [ ] CleanOption ) cleanOptions { if len ( opts ) <= 0 { return cleanOptions { objects : true , errors : true , pending : true , } } result := cleanOptions { } for _ , opt := range opts { opt . apply ( & result ) } return result }
procCleanOpts processes a list of options and returns a constructed
options structure.
procCleanOpts processes a list of options and returns a constructed options structure .
// If no options were passed, clean everything // Apply the options