upd doc, version
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								v.mod
									
									
									
									
									
								
							@@ -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: []
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user