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 Coverage struct + Match []Match + Percent float64 + func Scan(text []byte) Coverage + type License struct + ID string + LRE string + Type Type + URL string + func BuiltinLicenses() []License + type Match struct + End int + ID string + IsURL bool + Start int + Type Type + type Scanner struct + func NewScanner(licenses []License) (*Scanner, error) + func (s *Scanner) Scan(text []byte) Coverage + type Type uint + const Discouraged + const NonCommercial + const Notice + const ShareChanges + const ShareProgram + const ShareServer + const Unknown + const Unrestricted + func ParseType(s string) (Type, error) + func (t Type) Merge(u Type) Type + func (t Type) String() string