Versions in this module Expand all Collapse all v0 v0.11.0 Oct 24, 2023 v0.10.0 Apr 3, 2023 v0.9.0 Feb 28, 2023 Changes in this version + const AlphaNumericPattern + const CopyrightPattern + var AlphaNumericRegexp = regexp.MustCompile(AlphaNumericPattern) + var CopyrightRegexp = regexp.MustCompile(CopyrightPattern) + var DefaultKeywordList = []string + var Logger = log.NewLogger(log.INFO) + func FromOptions(licenseResults *IdentifierResults, enhancements Enhancements, ...) error + func PassedStaticBlocksChecks(staticBlocks []string, nd normalizer.NormalizationData) bool + type Block struct + Matches []string + Text string + type Enhancements struct + AddNotes string + AddTextBlocks bool + FlagAcceptable bool + FlagCopyrights bool + FlagKeywords bool + type IdentifierResults struct + AcceptablePatternMatches []PatternMatch + Blocks []Block + CopyRightStatements []PatternMatch + File string + Hash normalizer.Digest + KeywordMatches []PatternMatch + Matches map[string][]Match + NormalizedText string + Notes string + OriginalText string + func Identify(options Options, licenseLibrary *licenses.LicenseLibrary, ...) (IdentifierResults, error) + func IdentifyLicensesInDirectory(dirPath string, options Options, licenseLibrary *licenses.LicenseLibrary) (ret []IdentifierResults, err error) + func IdentifyLicensesInFile(filePath string, options Options, licenseLibrary *licenses.LicenseLibrary) (IdentifierResults, error) + func IdentifyLicensesInString(input string, options Options, licenseLibrary *licenses.LicenseLibrary) (IdentifierResults, error) + type Match struct + Begins int + Ends int + func FindMatchingPatternInNormalizedData(matchingPattern *licenses.PrimaryPatterns, ...) (results []Match, err error) + type Options struct + Enhancements Enhancements + ForceResult bool + OmitBlocks bool + type PatternMatch struct + Begins int + Ends int + Text string v0.0.0-rc1 Feb 28, 2023