title: How to print the licenses used in my project using Go Modules?
body: <p>For legal reasons, I need a list of licenses (e.g. MIT, Apache) the dependencies (direct and transient libraries) my project uses. I only know <a href="https://golang.org/cmd/go/#hdr-List_packages_or_modules" rel="nofollow noreferrer">how to print a list of dependencies without licenses</a>.</p>
  
  <p>Is there a way to print a list of dependencies with licenses for Go Modules? Similar to what is done in npm (<a href="https://www.npmjs.com/package/license-checker" rel="nofollow noreferrer">NPM License Checker</a>) and Gradle (<a href="https://github.com/jk1/Gradle-License-Report" rel="nofollow noreferrer">Gradle License Report</a>).
  Thanks!</p>