Versions in this module Expand all Collapse all v0 v0.4.0 May 4, 2023 Changes in this version + const Forbidden + const Notice + const Permissive + const Reciprocal + const Restricted + const Unencumbered + const Unknown + func Find(dir string, classifier Classifier) (string, error) + type Classifier interface + Identify func(licensePath string) (string, Type, error) + func NewClassifier(confidenceThreshold float64, options ...licenseclassifier.OptionFunc) (Classifier, error) + type GitRepo struct + func FindGitRepo(filePath string) (*GitRepo, error) + func (g *GitRepo) FileURL(filePath string, remote string) (*url.URL, error) + type Library struct + LicensePath string + Packages []string + func Libraries(ctx context.Context, classifier Classifier, importPaths ...string) ([]*Library, error) + func (l *Library) FileURL(filePath string) (*url.URL, error) + func (l *Library) Name() string + func (l *Library) String() string + type PackagesError struct + func (e PackagesError) Error() string + type Type string + func (t Type) String() string