Discover Packages
gopkg.in/src-d/go-license-detector.v3
licensedb
package
Version:
v3.0.2
Opens a new window with list of versions in this module.
Published: Dec 19, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 4
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.