thirdparty

package
v1.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(w io.Writer, modules []Module) error

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.

Types

type File

type File struct {
	Name    string
	Content []byte
}

File is a license or notice file of a module.

func Files

func Files(m Module) ([]File, error)

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.

type Module

type Module struct {
	Path    string
	Version string
	Dir     string // where its files are
	Source  string // where its source is published
}

Module is a module built into the executable.

func Modules

func Modules(dir, pattern string, platforms []string) ([]Module, error)

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.

Directories

Path Synopsis
Command gen writes the licenses of what is built into the probe executable to a file, for a release archive to carry:
Command gen writes the licenses of what is built into the probe executable to a file, for a release archive to carry:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL