parsers

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2018 License: MIT, Unlicense Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Confidence = ""
View Source
var Database = []License{}

Caching the database load result reduces processing time by about 3x for this repository

View Source
var DeepGuess = ""
View Source
var DirFilePaths = []string{}
View Source
var DocumentName = ""
View Source
var DocumentNamespace = ""
View Source
var ExtentionBlacklist = ""
View Source
var FileOutput = ""
View Source
var Format = ""
View Source
var MaxSize = ""
View Source
var PackageName = ""
View Source
var PathBlacklist = ""
View Source
var PossibleLicenceFiles = ""
View Source
var ToolName = "licensechecker"

Shared all over the place

View Source
var ToolVersion = "1.3.1"

Functions

func Process

func Process()

Types

type FileResult

type FileResult struct {
	Directory         string
	Filename          string
	LicenseGuesses    []LicenseMatch
	LicenseRoots      []LicenseMatch
	LicenseIdentified []LicenseMatch
	Md5Hash           string
	Sha1Hash          string
	Sha256Hash        string
	BytesHuman        string
	Bytes             int
}

type License

type License struct {
	Keywords    []string `json:"keywords"`
	LicenseText string   `json:"licenseText"`
	Name        string   `json:"name"`
	LicenseId   string   `json:"licenseId"`
	Concordance vectorspace.Concordance
}

type LicenseMatch

type LicenseMatch struct {
	LicenseId  string
	Percentage float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL