{"id":15393874,"url":"https://github.com/mitchellh/go-spdx","last_synced_at":"2025-09-07T08:39:59.241Z","repository":{"id":57480719,"uuid":"158019100","full_name":"mitchellh/go-spdx","owner":"mitchellh","description":"Golang library for listing and looking up licenses using SPDX IDs. ","archived":false,"fork":false,"pushed_at":"2018-11-17T20:44:05.000Z","size":8,"stargazers_count":23,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T05:59:25.748Z","etag":null,"topics":["licenses","spdx"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitchellh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-17T19:49:09.000Z","updated_at":"2024-03-07T23:00:44.000Z","dependencies_parsed_at":"2022-09-26T17:41:20.881Z","dependency_job_id":null,"html_url":"https://github.com/mitchellh/go-spdx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fgo-spdx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fgo-spdx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fgo-spdx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fgo-spdx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitchellh","download_url":"https://codeload.github.com/mitchellh/go-spdx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173061,"owners_count":21224481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["licenses","spdx"],"created_at":"2024-10-01T15:20:38.659Z","updated_at":"2025-04-15T23:52:46.664Z","avatar_url":"https://github.com/mitchellh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-spdx [![Godoc](https://godoc.org/github.com/mitchellh/go-spdx?status.svg)](https://godoc.org/github.com/mitchellh/go-spdx)\n\ngo-spdx is a Go library for listing and looking up licenses using\n[SPDX IDs](https://spdx.org/licenses/). SPDX IDs are an unambiguous way\nto reference a specific software license. The IDs are looked up using the\nspdx.org website (or custom URLs may be specified). Offline lookup is not\ncurrently supported.\n\nThis library does not implement the SPDX document format. SPDX document\nparsing and printing are provided by other libraries, including a library\n[in the official spdx organization](https://github.com/spdx/tools-go). This\nlibrary instead provides the ability to look up licenses via SPDX IDs.\n\n## Usage\n\n```go\n// Get the list of all known licenses\nlist, err := spdx.List()\n\n// Get a single license with more detail such as the license text\nlic, err := spdx.License(\"MIT\")\n\n// Create a custom client so you can control the HTTP client or the URLs\n// that are used to access licenses.\nclient := \u0026spdx.Client{ /* ... */ }\nclient.List()\nclient.License(\"MIT\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellh%2Fgo-spdx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitchellh%2Fgo-spdx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellh%2Fgo-spdx/lists"}