Versions in this module Expand all Collapse all v0 v0.1.0 Jan 22, 2024 Changes in this version + var CDDL1AndGPL1 = "cddl+gpl_1_1" + var ConfidenceMinimumValue = float32(0.9) + var CopyrightFileName = "copyright" + var NOASSERTION_LICENSE = "NOASSERTION" + var NONE_LICENSE = "NONE" + func CreateLicenseExpression(licenses []string) string + func EnsureSingleLicense(name string) string + func GetLicenseByZipFile(filePath string) []string + func GetLicensesFromCopyright(reader io.Reader) []string + func ParseLicenseFromContent(content string) (value, other string, exists bool) + func ParseLicenseFromDir(path string) (value []string, other string, exists bool) + func ParseLicenseName(key string) (value, other string, exists bool) + func ParseLicenseURL(key string) (value, other string, exists bool) + func SplitLicense(key string, licenseList []string) []string + func UniqueStrings(strs []string) []string + type LicenseGuess struct + Confidence float32 + Name string