{"modulePath":"github.com/github/go-spdx","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package expression\n\nExpression package validates licenses and determines if a license expression is satisfied by a list of licenses. Validity of a license is determined by the [SPDX license list](https://spdx.org/licenses/).\n\n## Functions\n\n```go\nfunc Satisfies(testExpression string, allowedList []string) (bool, error)\n```\nSatisfies determines if the allowed list of licenses satisfies the test license expression. Returns true if allowed list satisfies test license expression; otherwise, false. Returns error if error occurs during processing.\n\n```go\nfunc ValidateLicenses(licenses []string) (bool, []string)\n```\nValidateLicenses checks if given licenses are valid according to spdx. Returns true if all licenses are valid; otherwise, false. Returns all the invalid licenses contained in the \\`licenses\\` argument.\n\n","path":"github.com/github/go-spdx/expression","name":"expression","synopsis":"Expression package validates licenses and determines if a license expression is satisfied by a list of licenses.","isRedistributable":true}
