google / go-licenses

A lightweight tool to report on the licenses used by a Go package and its dependencies. Highlight! Versioned external URL to licenses can be found at the same time.
Apache License 2.0
790 stars 117 forks source link

Extract report functionality out of main #257

Open heppu opened 4 months ago

heppu commented 4 months ago

This pr moves report functionality under separated package so that it can be imported as library.

go-licenses is very useful tool but can't be currently used as a library since all code is placed under the main package. To integrate go-licenses with build tools like mage it would be great to allow user import it as a library.