Versions in this module Expand all Collapse all v0 v0.3.0 Jul 31, 2026 v0.2.0 Jul 30, 2026 Changes in this version + var ErrTooManyMatches = errors.New("licenses: too many exact-match candidates") + type CorpusInfo struct + RuleCount int + SourceCommit string + Version string + type Detection struct + Expression string + Identification Identification + Matches []Match + type Identification string + const Identified + const NoAssertion + const Partial + type Kind string + const KindClue + const KindIntro + const KindNotice + const KindReference + const KindTag + const KindText + const KindUnknown + type Match struct + Coverage float64 + End int + Kind Kind + LicenseIDs []string + Matched []byte + Method Method + RuleID string + Score float64 + Start int + type Matcher struct + func New(options ...Option) (*Matcher, error) + func (m *Matcher) Corpus() CorpusInfo + func (m *Matcher) Match(ctx context.Context, b []byte) (Result, error) + type Method string + const Exact + const Hash + const SpdxID + type Option func(*matcherOptions) + func WithMatchedText() Option + type Result struct + Clues []Match + Corpus CorpusInfo + Detections []Detection v0.1.0 Jul 29, 2026