Registry / utility / github-go-spdx-v2

github-go-spdx-v2

JSON →
library2.6.0gogounverified

Package spdx provides tools for parsing and validating SPDX license expressions and documents.

go get github.com/github/go-spdx/v2
INSTALL
IMPORT
SIG · GITHUB-GO-SPDX-V2
G
github-go-spdx-v2
utilitygov2.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

spdx
github.com/github/go-spdx/v2

Parse an SPDX license expression

package main import ( "fmt" "github.com/github/go-spdx/v2" ) func main() { license, err := spdx.Parse("MIT") if err != nil { fmt.Println(err) return } fmt.Println(license.ID) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
github-go-spdx-v2 — go get github-go-spdx-v2 · libregistry