Versions in this module Expand all Collapse all v2 v2.0.2 Oct 23, 2023 Changes in this version + func LicenseName(in string) string + type Classifier struct + func NewClassifier(threshold float64) *Classifier + func (c *Classifier) AddContent(category, name, variant string, content []byte) + func (c *Classifier) LoadLicenses(dir string) error + func (c *Classifier) Match(in []byte) Results + func (c *Classifier) MatchFrom(in io.Reader) (Results, error) + func (c *Classifier) Normalize(in []byte) []byte + func (c *Classifier) SetTraceConfiguration(in *TraceConfiguration) + type Match struct + Confidence float64 + EndLine int + EndTokenIndex int + MatchType string + Name string + StartLine int + StartTokenIndex int + Variant string + type Matches []*Match + func (d Matches) Len() int + func (d Matches) Less(i, j int) bool + func (d Matches) Swap(i, j int) + type Results struct + Matches Matches + TotalInputLines int + type TraceConfiguration struct + TraceLicenses string + TracePhases string + Tracer TraceFunc + type TraceFunc func(string, ...interface{})