Package thirdparty collects the licenses of what is built into the probe
executable: the modules it links, and the Go standard library. Most of
them ask that their copyright notice and license go with a copy in binary
form, which a release archive is, so the archive carries them in one file.
Write writes the licenses of the modules to w: a list of the modules,
and then, for each, where its source is and the text of its files. It
writes nothing for the modules when any of them has no license file, and
the error names every such module.
Files returns the license and notice files at the top of a module, sorted
by name. A module without one is an error: its license cannot be passed
on, and has to be looked at by hand.
Modules returns the modules that the package at pattern links when it is
built for each of the platforms, given as os/arch, apart from the main
module, and the Go standard library, which every build links. They are
sorted by path.