Versions in this module Expand all Collapse all v0 v0.1.0 Sep 23, 2026 Changes in this version + const MaxDocumentBytes + const MaxDocuments + const MaxPackageBytes + type Coverage struct + Bytes int + DuplicateOf string + Path string + SHA256 string + Status string + type Document struct + Data []byte + Path string + type Evidence struct + Count int + Detail string + End int + Excerpt string + Path string + Start int + type Match struct + Contribution int + Evidence []Evidence + Rule string + Weight int + type Measurement struct + ContextCount int + Count int + OfferCount int + Path string + Rule string + TextBytes int + TextCount int + URLBytes int + type Options struct + DisabledRules []string + Rules []Rule + Weights map[string]int + type Result struct + Configuration string + Coverage []Coverage + Documents int + DuplicateDocuments int + Matches []Match + Measurements []Measurement + Ruleset string + Score int + Weights map[string]int + func ScanFile(path string, data []byte) (Result, error) + type Rule struct + Category string + DefaultWeight int + Description string + Expression string + ID string + Provenance string + type Scanner struct + func NewScanner(opts Options) (*Scanner, error) + func (s *Scanner) Rules() []Rule + func (s *Scanner) Scan(documents []Document) (Result, error) + func (s *Scanner) ScanFile(path string, data []byte) (Result, error)