upd doc, version

This commit is contained in:
ge
2025-04-22 19:27:53 +03:00
parent 3ab92ee93a
commit d0e9c04326
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
## Query the SPDX license list and licenses information # Query the SPDX license list
`licenseid` module embeds the SPDX license list data file taken from `licenseid` module embeds the SPDX license list data file taken from
https://spdx.org/licenses/licenses.json and allows you to obtain basic https://spdx.org/licenses/licenses.json and allows you to obtain basic

View File

@ -47,7 +47,7 @@ pub:
} }
// details fetches the license details object from SPDX data file using the // details fetches the license details object from SPDX data file using the
// details_url. Requires access to public network. // details_url. Requires access to internet.
pub fn (l License) details() !LicenseDetails { pub fn (l License) details() !LicenseDetails {
response := http.get(l.details_url)! response := http.get(l.details_url)!
details := json.decode(LicenseDetails, response.body)! details := json.decode(LicenseDetails, response.body)!

2
v.mod
View File

@ -1,7 +1,7 @@
Module{ Module{
name: 'licenseid' name: 'licenseid'
description: 'Query the SPDX license list and licenses information' description: 'Query the SPDX license list and licenses information'
version: '0.0.1' version: '0.0.2'
license: 'Unlicense' license: 'Unlicense'
dependencies: [] dependencies: []
} }