title: How to get all dependencies (modules) used?
body: <p>I try to get all the dependencies my project uses.</p>
  <p>I looked at the <code>go.mod</code> file, though this only contains dependencies/modules that I added, and not the dependencies from my dependencies.</p>
  <p>Looking at the <code>go.sum</code> file, this looked more promising, though then I noticed it contains multiple duplicates. Even though I only use one version of the dependency. As an example:</p>
  <pre><code>github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
  github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
  github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
  google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
  </code></pre>
  <p>How can I get a list containing only all actively used dependencies/modules?</p>