go-license
go-license copied to clipboard
Use the same license tokens/link as opensource.org
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
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!
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