go-spdx

The package parses SPDX license expression strings describing license terms.
This a fork of the original https://github.com/kyoh86/go-spdx which I'm keeping because the original one seems not maintained actively (see my pending Pull Request)
Install
go get github.com/kyoh86/go-spdx
Usage
See example or test
Updating licenses
In order to update the licenses_asset.go file with the newest license list from SPDX, execute the following commands:
npm install spdx-license-list@latest
make licenses-asset
(You should also add a test to spdx/parser_test.go to make sure everything worked as expected.)
LICENSE

This is distributed under the MIT License.