Documentation
¶
Index ¶
Constants ¶
View Source
const ( FlagLicenseText uint16 = 1 << 1 FlagLicenseNotice uint16 = 1 << 2 FlagLicenseTag uint16 = 1 << 3 FlagLicenseReference uint16 = 1 << 4 FlagLicenseIntro uint16 = 1 << 5 FlagLicenseClue uint16 = 1 << 6 FlagFalsePositive uint16 = 1 << 7 FlagRequiredPhrase uint16 = 1 << 8 FlagContinuous uint16 = 1 << 9 FlagDeprecated uint16 = 1 << 10 )
View Source
const FormatVersion = 4
FormatVersion is the on-disk corpus index format.
Variables ¶
This section is empty.
Functions ¶
func EmbeddedSize ¶
func EmbeddedSize() int
EmbeddedSize returns the compressed corpus size in bytes.
Types ¶
type Index ¶
type Index struct {
Info Info
Vocabulary []string
Rules []Rule
Automaton aho.Automaton
// SPDXKeys maps lowercase SPDX identifiers, and their deprecated aliases,
// to ScanCode license keys.
SPDXKeys map[string]string
}
Index is a decoded corpus.
Click to show internal directories.
Click to hide internal directories.