Discover Packages
github.com/go-enry/go-license-detector/v4
licensedb
package
Version:
v4.0.0
Opens a new window with list of versions in this module.
Published: May 31, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 37
Opens a new window with list of known importers.
Documentation
Documentation
¶
Detect returns the most probable reference licenses matched for the given
file tree. Each match has the confidence assigned, from 0 to 1, 1 means 100% confident.
type Match struct {
License string `json:"license"`
Confidence float32 `json:"confidence"`
}
Match describes the level of confidence for the detected License
type Result struct {
Arg string `json:"project,omitempty"`
Matches []Match `json:"matches,omitempty"`
ErrStr string `json:"error,omitempty"`
}
Result gathers license detection results for a project path
Analyse runs license analysis on each item in `args`
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.