7 "github.com/mjl-/mox/mlog"
10// CloseRemoveTempFile closes and removes f, a file described by descr. Often
11// used in a defer after creating a temporary file.
12func CloseRemoveTempFile(log mlog.Log, f *os.File, descr string) {
15 log.Check(err, "closing temporary file", slog.String("kind", descr))
17 log.Check(err, "removing temporary file", slog.String("kind", descr))