{"repo":"google/go-licenses","free":true,"listed":false,"github":"https://github.com/google/go-licenses","clone":"git clone https://github.com/google/go-licenses.git","description":"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.","language":"Go","stars":1010,"topics":["license","license-management","license-checking","go","golang"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"Licenses tool This is not an officially supported Google product. go-licenses analyzes the dependency tree of a Go package/binary. It can output a report on the libraries used and under what license they can be used. It can also collect all of the license documents, copyright notices and source code into a directory in order to comply with license terms on redistribution. Before you start To use this tool, make sure: You have Go v1.16 or later installed. Change directory to your go project, for example : Download required modules: Installation Use the following command to download and install this tool: If you were using go get to install this tool, note that starting in Go 1.17, go get is deprecated for installing binaries. Reports This command prints out a comma-separated report (CSV) listing the libraries used by a binary/package, the URL where their licenses can be viewed and the type of license. A library is considered to be one or more Go packages that share a license file. URLs are versioned based on go modules metadata. Tip : go-licenses writes the report to stdout and info/warnings/errors logs to stderr. To save the CSV to a file licenses.csv in bash, run: Or, to also save error logs to an errors file, run: Note : some warnings and errors may be expected, refer to Warnings and Errors for more information. Reports with Custom Templates This command executes a specified Go template file to generate a report of licenses. The template file is passed a slice of structs co","default_branch":null,"files":null,"tree":[],"storefront":"/r/google","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/google/go-licenses/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}