package
0.2.5
Repository: https://github.com/sourcegraph/srclib.git
Documentation: pkg.go.dev

# Functions

Bundle builds all variants of the toolchain and creates separate archive files for each variant in a temporary directory.
ChooseTool determines which toolchain and tool to use to run op (graph, depresolve, etc.) on a source unit of the given type.
Command returns the path to the executable program for the toolchain with the given path.
Dir returns the directory where the named toolchain lives (under the SRCLIBPATH).
List finds all toolchains in the SRCLIBPATH.
ListTools lists all tools in all available toolchains (returned by List).
Lookup finds a toolchain by path in the SRCLIBPATH.
ParseVariant parses a variant string (e.g., "arch-386_os-linux") into its key-value pairs ({"arch": "386", "os": "linux"}).
Unbundle unpacks the archive r to the toolchain named by the given toolchain path.

# Constants

ConfigFilename is the filename of the toolchain configuration file.

# Structs

Config represents a Srclibtoolchain file, which defines a srclib toolchain.
Info describes a toolchain.
ToolInfo describes a tool in a toolchain.

# Type aliases

Variant represents a single permutation of variables that produces a single product (for toolchain bundles); e.g., {"os":"linux", "arch": "amd64"}.