func WithMaxAge(d time.Duration) Option {
	return OptionFn(func(rl *RotateLogs) error {
		rl.maxAge = d
		return nil
	})
}
WithMaxAge creates a new Option that sets the
max age of a log file before it gets purged from
the file system.
package rotatelogs
import (
	"fmt"
	"os"
	"path/filepath"
	"regexp"
	"strings"
	"sync"
	"time"
	strftime "github.com/lestrrat/go-strftime"
	"github.com/pkg/errors"
)
func (c clockFn) Now() time.Time {
	return c()
}
func (o OptionFn) Configure(rl *RotateLogs) error {
	return o(rl)
}
func WithClock(c Clock) Option {
	return OptionFn(func(rl *RotateLogs) error {
		rl.clock = c
		return nil
	})
}
func WithLocation(loc *time.Location) Option {
	return WithClock(clockFn(func() time.Time {
		return time.Now().In(loc)
	}))
}
func WithLinkName(s string) Option {
	return OptionFn(func(rl *RotateLogs) error {
		rl.linkName = s
		return nil
	})
}