func (r *Report) Set(name string, err error) {
	r.mutex.Lock()
	defer r.mutex.Unlock()
	r.errors[name] = err
}
Set the provided error for the provided name.
package exit
import (
	"fmt"
	"io"
	"sort"
	"strings"
	"sync"
)
type Report struct {
	ExitName string
	errors map[string]error
	mutex  *sync.RWMutex
}
func NewReport(exitName string) *Report {
	return &Report{
		ExitName: exitName,
		errors:   make(map[string]error),
		mutex:    &sync.RWMutex{},
	}
}