go-license icon indicating copy to clipboard operation
go-license copied to clipboard

Use the same license tokens/link as opensource.org

Open client9 opened this issue 10 years ago • 2 comments

i.e. instead of NewBSD one would use BSD-2-Clause, etc so linking to http://opensource.org/licenses/BSD-2-Clause would be trivial.

(or add to the data structure, a Link field would contain the right link to opensource.org)

thoughts? Im happy to do the work.

regards,

n

client9 avatar Oct 05 '15 16:10 client9

A few projects I know of persist the current license tags into serialized JSON, etc., so we wouldn't want to break those. I think what we can do though, is have like a Meta map[string]string in the License struct, which would let us add arbitrary key/value data to each one once we detect the type. Thanks for the suggestion!

ryanuber avatar Oct 05 '15 16:10 ryanuber

hi again

I whipped up this, as a sample. Im happy to port it any format you want (or just leave it as a separate item).

https://github.com/client9/gosupplychain/blob/master/license_meta.go

I love the new branch you are working on.

thanks!

nickg

client9 avatar Oct 21 '15 06:10 client9