ryanuber / go-license

Software licensing standardization library for Golang
MIT License
69 stars 15 forks source link

Use the same license tokens/link as opensource.org #7

Open client9 opened 8 years ago

client9 commented 8 years ago

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

ryanuber commented 8 years ago

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!

client9 commented 8 years ago

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