func NewArchiver(opts config.Opts, rw readWriter, date time.Time) *Archiver {
	return &Archiver{
		opts: opts,
		rw:   rw,
		date: date,
		monthArchives: map[string]*template.MonthArchiveTemplate{},
		archivedFiles: []string{},
	}
}
NewArchiver constructs a new Archiver
package archive
import (
	"log"
	"time"
	"github.com/dkaslovsky/textnote/pkg/config"
	"github.com/dkaslovsky/textnote/pkg/file"
	"github.com/dkaslovsky/textnote/pkg/template"
	"github.com/pkg/errors"
)
type Archiver struct {
	opts config.Opts
	rw   readWriter
	date time.Time  
	monthArchives map[string]*template.MonthArchiveTemplate
	archivedFiles []string
}