built the basic data around loading HTML checker configurations - next we will want to tackle the tag repository, which is massive

This commit is contained in:
2025-10-30 23:18:35 -06:00
parent 596d7de7de
commit 048ac3abc3
2 changed files with 108 additions and 3 deletions
+6 -3
View File
@@ -9,6 +9,8 @@
// The htmlcheck package contains the HTML Checker.
package htmlcheck
import "net/url"
// HTMLChecker is a component that checks HTML and reformats it as needed.
type HTMLChecker interface {
Append(string) error
@@ -18,9 +20,10 @@ type HTMLChecker interface {
Length() (int, error)
Lines() (int, error)
Counter(string) (int, error)
Context() map[string]any
ExternalRefs() ([]any, error)
InternalRefs() ([]any, error)
GetContext(string) any
SetContext(string, any)
ExternalRefs() ([]*url.URL, error)
InternalRefs() ([]string, error)
}
// var NotYetFinished = errors.New("the HTML checker has not yet been finished")