Release v2.2.0
Overview
This is a minor update to add a new function ExtractLicenses
to the API.
Required Actions for Updating
Run the following to update to this release.
go get github.com/github/go-spdx/[email protected]
Details
This function allows SPDX licenses to be extracted from any valid SPDX expression.
licenses, err := ExtractLicenses("(MIT AND APACHE-2.0) OR (APACHE-2.0)")
assert.Equal(licenses, []string{"MIT", "Apache-2.0"})
What's Changed
- Add a new
ExtractLicenses
function for pulling out SPDX licenses (ajhenry)
Full Changelog: v2.1.2...v2.2.0