Files
rsser/fixers/fixers.go
T

18 lines
354 B
Go
Raw Normal View History

2026-08-05 12:06:46 +05:00
package fixers
type fixerFunc func(title, body string) (string, string)
var fixers = map[string]fixerFunc{
"www.opennet.ru": opennetFixer,
}
// Fix fixes title and body depending on site parsed.
func Fix(domain, title, body string) (string, string) {
fixer, found := fixers[domain]
if !found {
return title, body
}
return fixer(title, body)
}