Versions in this module Expand all Collapse all v0 v0.4.1 May 2, 2026 v0.4.0 Mar 15, 2026 Changes in this version + type Checker struct + func New(licenses []License) *Checker + func (c *Checker) Cover(input []byte, opts Options) (Coverage, bool) + type Coverage struct + Match []Match + Percent float64 + func Cover(input []byte, opts Options) (Coverage, bool) + type License struct + Name string + Text string + URL string + func BuiltinLicenses() []License + type Match struct + End int + IsURL bool + Name string + Percent float64 + Start int + Type Type + type Options struct + MinLength int + Slop int + Threshold int + type Type int + const AGPL + const Apache + const BSD + const CC + const GPL + const JSON + const MIT + const NumTypes + const Other + const Unlicense + const Zlib + func (i Type) String() string