Files
Roger 3e9150249c refactor: rename core types and spell out every name (#677)
Def, Request, DirID, and Source said too little, and short variables and doc comments that skip their name hid intent.
varnamelen and staticcheck ST1020-22 now keep both from coming back.
2026-11-02 11:06:05 +08:00

27 lines
672 B
Go

package main
import (
"io"
"strings"
"github.com/moond4rk/hackbrowserdata/internal/app"
"github.com/moond4rk/hackbrowserdata/internal/browser"
"github.com/moond4rk/hackbrowserdata/internal/category"
"github.com/moond4rk/hackbrowserdata/internal/log"
)
func browserNames() string {
return strings.Join(browser.Names(), "|")
}
func categoryNames() string {
return strings.Join(category.Names(), ",")
}
// report prints the run's summary; it is not part of the output, so failing to print it never fails the run.
func report(writer io.Writer, summary app.Summary) {
if err := app.Report(writer, summary); err != nil {
log.Warnf("print summary: %v", err)
}
}